WebExtensions/Hacking: Difference between revisions

Jump to navigation Jump to search
Fix typo and consistent quotes in eslint for vim section
(Fix typo and consistent quotes in eslint for vim section)
Line 62: Line 62:
  Bundle 'scrooloose/syntastic'
  Bundle 'scrooloose/syntastic'
   
   
  " Enable ESLint in Syntasitc.
  " 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 = { "html": "javascript" }
  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:
44

edits

Navigation menu