0.0.6 • Published 3 years ago
eslint-service v0.0.6
eslint-service
Installation: npm install --global eslint-service
Usage (Sublime Text):
- Install
SublimeLinterthrough Package Control - Install
SublimeLinter-eslintthrough Package Control - Open
Preferences: SublimeLinter Settingsthrough the command palette - Configure like so:
{
"linters": {
"eslint": {
"executable": "eslint-service",
"args": "--rule no-trailing-spaces=off"
}
}
}Notes
- Binds to
localhost:2881by default, can be configured by settingESLINT_PORTandESLINT_HOSTenvironment variables - Service worker sticks around for 15 minutes by default, can be configured by setting
ESLINT_TIMEOUTenvironment 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=offare 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