mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-04 07:29:32 +00:00
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!({
|
||||
"": {
|
||||
"validate": "on",
|
||||
"rulesCustomizations": [],
|
||||
"run": "onType",
|
||||
"nodePath": null,
|
||||
"nodePath": node_path,
|
||||
"workingDirectory": {"mode": "auto"},
|
||||
"workspaceFolder": {
|
||||
"uri": workspace_root,
|
||||
|
|
Loading…
Reference in a new issue