44
edits
m (→Code coverage tests: Typo fix) |
(Fix typo and consistent quotes in eslint for vim section) |
||
Line 62: | Line 62: | ||
Bundle 'scrooloose/syntastic' | Bundle 'scrooloose/syntastic' | ||
" Enable ESLint in | " Enable ESLint in Syntastic. | ||
let g:syntastic_javascript_checkers = ['eslint'] | let g:syntastic_javascript_checkers = ['eslint'] | ||
" Enable the HTML plugin, and enable JavaScript linting for HTML files. | " Enable the HTML plugin, and enable JavaScript linting for HTML files. | ||
let g:syntastic_javascript_eslint_args = ['--plugin', 'html'] | let g:syntastic_javascript_eslint_args = ['--plugin', 'html'] | ||
let g:syntastic_filetype_map = { | let g:syntastic_filetype_map = { 'html': 'javascript' } | ||
After you've added this to your configuration (and have installed Vundle, if necessary), launch Vim and run: | After you've added this to your configuration (and have installed Vundle, if necessary), launch Vim and run: |
edits