eslint-service

0.0.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i eslint-service

Weekly Downloads

1

Version

0.0.6

License

MIT

Unpacked Size

7.06 kB

Total Files

5

Last publish

Collaborators

  • jimbly