Changes

Jump to: navigation, search

WebExtensions/Hacking

20 bytes removed, 23:02, 1 July 2016
Vim: Change linting setup because syntastic PR 1803 was rejected
" Enable the specific ESLint checker for files in mozilla-central/ only.
" Enable the HTML plugin, and enable JavaScript linting for HTML files.
autocmd BufReadFileType javascript,BufNewFile *html \ if stridx(expand("%:p"), "/mozilla-central/*") != -1 | \ let b:syntastic_javascript_checkers syntastic_checkers = ['eslint'] | \ let b:syntastic_javascript_eslint_exec syntastic_eslint_exec = '/pathUsers/torwu/mozilla-central/tools/lint/eslint/node_modules/.bin/eslint' | \ let b:syntastic_javascript_eslint_args syntastic_html_eslint_args = ['--plugin', 'html'] | \ let b:syntastic_filetype_map = { 'html': 'javascript' }endif
After you've added this to your configuration (and have installed Vundle, if necessary), launch Vim and run:
44
edits

Navigation menu