Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-service

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-service - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

10

lib/service-worker.js

@@ -59,4 +59,12 @@ const assert = require('assert');

(async function main() {
let overrideConfig;
if (data.rule) {
overrideConfig = {
rules: {},
};
let pair = data.rule.split('=');
overrideConfig.rules[pair[0]] = pair[1];
}
// 1. Create an instance.
const eslint = new ESLint({ ignore: false });
const eslint = new ESLint({ ignore: false, overrideConfig });

@@ -63,0 +71,0 @@ // 2. Lint files.

2

package.json
{
"name": "eslint-service",
"version": "0.0.4",
"version": "0.0.5",
"description": "ESLint service worker for maximally efficient editor integrations",

@@ -5,0 +5,0 @@ "keywords": [

@@ -14,3 +14,4 @@ # eslint-service

"eslint": {
"executable": "eslint-service"
"executable": "eslint-service",
"args": "--rule no-trailing-spaces=off"
}

@@ -24,3 +25,3 @@ }

* 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 currently supported, but it would be very easy to add additional support for other options, PRs welcome!
* 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!

@@ -27,0 +28,0 @@ Timing comparison (on a fully primed disk cache):

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc