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:
Yanguk 2024-03-11 18:15:06 +09:00 committed by GitHub
parent d66f8f99bd
commit 9ff3cff6f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,