/eslintme

The fastest way to eslint a single file

Primary LanguageShellMIT LicenseMIT

eslintme

NPM version Build Status

The fastest way to eslint a single file

About

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.

Install

$ npm install -g eslintme

Usage

To start the server and lint a file, just run:

$ eslintme file.js

Editor Integration

  • 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'

Support

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.

License

MIT © Ruy Adorno