From 4966a4a681d4a79a8222eca1434f45e6f33fe925 Mon Sep 17 00:00:00 2001 From: Julia Date: Mon, 1 May 2023 13:14:35 -0400 Subject: [PATCH] Reduce hardcoded ESLint workspace configuration --- crates/zed/src/languages/typescript.rs | 33 ++++---------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/crates/zed/src/languages/typescript.rs b/crates/zed/src/languages/typescript.rs index 54d61e91ca..429a5d9421 100644 --- a/crates/zed/src/languages/typescript.rs +++ b/crates/zed/src/languages/typescript.rs @@ -188,35 +188,10 @@ impl LspAdapter for EsLintLspAdapter { Some( future::ready(json!({ "": { - "validate": "on", - "packageManager": "npm", - "useESLintClass": false, - "experimental": { - "useFlatConfig": false - }, - "codeActionOnSave": { - "mode": "all" - }, - "format": false, - "quiet": false, - "onIgnoredFiles": "off", - "options": {}, - "rulesCustomizations": [], - "run": "onType", - "problems": { - "shortenToSingleLine": false - }, - "nodePath": null, - "codeAction": { - "disableRuleComment": { - "enable": true, - "location": "separateLine", - "commentStyle": "line" - }, - "showDocumentation": { - "enable": true - } - } + "validate": "on", + "rulesCustomizations": [], + "run": "onType", + "nodePath": null, } })) .boxed(),