0.0.6 • Published 3 years ago

eslint-service v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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 setting ESLINT_PORT and ESLINT_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: 1055ms
  • eslint-service: 248ms
0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago