diff --git a/eslint.config.js b/eslint.config.js index a5be0cd52..c00bdf190 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -72,8 +72,11 @@ export default defineConfig([ ] } }, - ...tseslint.config({ - extends: [...tseslint.configs.recommended], + ...tseslint.configs.recommended.map(config => ({ + ...config, + files: ["**/*.?([cm])ts", "**/*.?([cm])tsx"] + })), + { files: ["**/*.?([cm])ts", "**/*.?([cm])tsx"], rules: { "@typescript-eslint/no-redeclare": "error", @@ -102,7 +105,7 @@ export default defineConfig([ } ] } - }), + }, { files: ["**/*.d.ts"], rules: {