eslint-service
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -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. |
{ | ||
"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): |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7063
192
29