Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add TypeScript support to ESLint flat config (#30044)
Andrey Sitnik26181917853c
diff --git a/crates/languages/src/typescript.rs b/crates/languages/src/typescript.rsindex 20249e00922..27286648bff 100644--- a/crates/languages/src/typescript.rs+++ b/crates/languages/src/typescript.rs@@ -341,8 +341,14 @@ impl EsLintLspAdapter {const SERVER_PATH: &'static str = "vscode-eslint/server/out/eslintServer.js";const SERVER_NAME: LanguageServerName = LanguageServerName::new_static("eslint");- const FLAT_CONFIG_FILE_NAMES: &'static [&'static str] =- &["eslint.config.js", "eslint.config.mjs", "eslint.config.cjs"];+ const FLAT_CONFIG_FILE_NAMES: &'static [&'static str] = &[+ "eslint.config.js",+ "eslint.config.mjs",+ "eslint.config.cjs",+ "eslint.config.ts",+ "eslint.config.cts",+ "eslint.config.mts",+ ];pub fn new(node: NodeRuntime) -> Self {EsLintLspAdapter { node }