shofel / syntastic-local-js-checkers

For each buffer use javascript checkers from node_modules of the project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

For each buffer use javascript checkers from node_modules of the project

License:MIT License


Languages

Language:Vim Script 100.0%