eslint-service
v0.0.6
Published
ESLint service worker for maximally efficient editor integrations
Downloads
14
Readme
eslint-service
Installation: npm install --global eslint-service
Usage (Sublime Text):
- Install
SublimeLinter
through Package Control - Install
SublimeLinter-eslint
through Package Control - Open
Preferences: SublimeLinter Settings
through the command palette - Configure like so:
{
"linters": {
"eslint": {
"executable": "eslint-service",
"args": "--rule no-trailing-spaces=off"
}
}
}
Notes
- Binds to
localhost:2881
by default, can be configured by settingESLINT_PORT
andESLINT_HOST
environment variables - Service worker sticks around for 15 minutes by default, can be configured by setting
ESLINT_TIMEOUT
environment variable (timeout in seconds) - Only the particular command-line options (
eslint --format json --stdin --stdin-filename
) used by SublimeLinter-eslint, and a single--rule foo=off
are currently supported, but it would be very easy to add additional support for other options, PRs welcome!
Timing comparison (on a fully primed disk cache):
eslint
: 1055mseslint-service
: 248ms