You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

eslint-service

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-service

ESLint service worker for maximally efficient editor integrations

0.1.3
latest
npmnpm
Version published
Weekly downloads
19
137.5%
Maintainers
0
Weekly downloads
 
Created
Source

eslint-service

ESLint service worker for maximally efficient editor integrations. Also implements global config file support and improves feedback through SublimeLinter-eslint.

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!
  • Updated for ESLint v9
    • Use v0.0.x for odler ESLint versions
    • ESLint 9 requires a new config file format (eslint.config.js)
    • eslint-service re-adds global config file support (place in ~/eslint.config.js or %USERPROFILE%\eslint.config.js)

Timing comparison (on a fully primed disk cache):

  • eslint: 343ms
  • eslint-service: 87ms

Keywords

eslint

FAQs

Package last updated on 20 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts