Comparing version 13.1.1 to 13.1.2
@@ -10,4 +10,13 @@ /* eslint-disable no-sync */ | ||
function deleteUndefinedOptions(options) { | ||
Object.keys(options).forEach((key) => { | ||
if (options[key] === undefined) { | ||
delete options[key]; | ||
} | ||
}); | ||
return options; | ||
} | ||
function translateOptionsCLIEngine(cliOptions, cwd) { | ||
return { | ||
return deleteUndefinedOptions({ | ||
envs: cliOptions.env, | ||
@@ -41,7 +50,7 @@ extensions: cliOptions.ext, | ||
cwd | ||
}; | ||
}); | ||
} | ||
function translateOptionsESLint(cliOptions, cwd) { | ||
return { | ||
return deleteUndefinedOptions({ | ||
allowInlineConfig: cliOptions.inlineConfig, | ||
@@ -82,7 +91,7 @@ cache: cliOptions.cache, | ||
cwd | ||
}; | ||
}); | ||
} | ||
function translateOptionsFlatESLint(cliOptions, cwd) { | ||
return { | ||
return deleteUndefinedOptions({ | ||
allowInlineConfig: cliOptions.inlineConfig, | ||
@@ -100,3 +109,3 @@ cache: cliOptions.cache, | ||
cwd | ||
}; | ||
}); | ||
} | ||
@@ -103,0 +112,0 @@ |
{ | ||
"name": "eslint_d", | ||
"version": "13.1.1", | ||
"version": "13.1.2", | ||
"description": "Makes eslint the fastest linter on the planet", | ||
@@ -5,0 +5,0 @@ "bin": "bin/eslint_d.js", |
@@ -73,2 +73,6 @@ # eslint\_d | ||
Known flat config limitations: | ||
- [#281](https://github.com/mantoni/eslint_d.js/issues/281) - The background server process only evaluates the config format used at start time and not per invocation of eslint. Multiple projects sharing the same background server but using different config formats will result in config errors for the projects that don't match the background server's set config format. Editors that automatically start `eslint_d` will also result in config errors if the background server was not started with the correct config format for the project. Restarting `eslint_d` with the desired config format can be used to work around the limitation: `ESLINT_USE_FLAT_CONFIG=true eslint_d restart` to enable flat configs or `ESLINT_USE_FLAT_CONFIG= eslint_d restart` to disable flat configs. | ||
## Commands | ||
@@ -128,3 +132,3 @@ | ||
``` | ||
- __Sublime__: The official [SublimeLinter-eslint](https://github.com/SublimeLinter/SublimeLinter-eslint) | ||
- __Sublime__: The official [SublimeLinter-eslint](https://github.com/SublimeLinter/SublimeLinter-eslint) | ||
plugin automatically prefers `eslint_d` if it finds one. | ||
@@ -154,4 +158,4 @@ - __Atom__, __VSCode__: You will not gain any performance from this module as | ||
- __Emacs__: See [eslintd-fix](https://github.com/aaronjensen/eslintd-fix) | ||
- __If the above doesn't autofix__: [This can happen with .vue files](https://github.com/mantoni/eslint_d.js/issues/145#issuecomment-787119881) | ||
Change `eslint_d --stdin --fix-to-stdout` to `eslint_d --stdin --fix-to-stdout --stdin-filename %` (% = path to file you want to autofix) | ||
- __If the above doesn't autofix__: [This can happen with .vue files](https://github.com/mantoni/eslint_d.js/issues/145#issuecomment-787119881) | ||
Change `eslint_d --stdin --fix-to-stdout` to `eslint_d --stdin --fix-to-stdout --stdin-filename %` (% = path to file you want to autofix) | ||
In Vim, the above mapping should be replaced with: | ||
@@ -158,0 +162,0 @@ ```vim |
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
40740
1052
237