The fastest way to eslint a single file
This is a convenience script around eslint_d to run it at maximum speed using netcat.
eslint_d is an amazing tool that keeps a local server running eslint to cut linting time for a single file, so that we can get instant linting in our preferred editor.
$ npm install -g eslintme
To start the server and lint a file, just run:
$ eslintme file.js
- Vim: Install the syntastic plugin, then make sure this is in your
.vimrc
:
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_eslint_generic = 1
let g:syntastic_javascript_eslint_exec = 'eslintme'
Please note that this is a very platform-specific convenience wrapper around eslint_d, it only supports unix platforms where netcat is available. For usage in any other systems please stick with the regular eslint_d.
MIT © Ruy Adorno