Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 676 Bytes

README.md

File metadata and controls

11 lines (9 loc) · 676 Bytes

syntastic-local-js-checkers

For each buffer with javascript file use all the javascript checkers from node_modules of the project

What does it do

  1. Find node-modules of the project. If not found, then do nothing: we're not in a project.
  2. Read g:syntastic_javascript_checkers (For example, ['eslint', 'flow'])
  3. For each checker find the executable in node_modules (If not found, show an error)
  4. For each checker set b:syntastic_javascript_(checkername)_exec to the path found

Known issue:

Fugitive's diff doesn't work together: the plugin detects node-modules, but doesn't find the executables. If you know a way to fix this, you're welcome to PR!