diff --git a/crates/languages/src/typescript.rs b/crates/languages/src/typescript.rs index 33083c2fd1..4979f7febb 100644 --- a/crates/languages/src/typescript.rs +++ b/crates/languages/src/typescript.rs @@ -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,