Respect eslint.nodePath
setting (#9073)
I'm using Yarn Plug'n'Play. In this case, by default, eslint cannot find the path, so configuration like `"eslint.nodePath": ".yarn/sdks"` is required. So, I want to add this! Release Notes: - Added eslint config nodePath
This commit is contained in:
parent
d66f8f99bd
commit
9ff3cff6f8
1 changed files with 3 additions and 1 deletions
|
@ -254,12 +254,14 @@ impl LspAdapter for EsLintLspAdapter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let node_path = eslint_user_settings.get("nodePath").unwrap_or(&Value::Null);
|
||||||
|
|
||||||
json!({
|
json!({
|
||||||
"": {
|
"": {
|
||||||
"validate": "on",
|
"validate": "on",
|
||||||
"rulesCustomizations": [],
|
"rulesCustomizations": [],
|
||||||
"run": "onType",
|
"run": "onType",
|
||||||
"nodePath": null,
|
"nodePath": node_path,
|
||||||
"workingDirectory": {"mode": "auto"},
|
"workingDirectory": {"mode": "auto"},
|
||||||
"workspaceFolder": {
|
"workspaceFolder": {
|
||||||
"uri": workspace_root,
|
"uri": workspace_root,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue