Skip to content

Commit 1668913

Browse files
hesreallyhimclaude
andcommitted
fix: move ESLint ignores to first position for proper global ignore behavior
In ESLint flat config, an ignores-only object must precede other config entries to act as a true global ignore. When placed last, the typescript-eslint project service attempted to parse .mjs files before the ignore took effect, causing editor errors for scripts like render-diagnostics.mjs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b71ca93 commit 1668913

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

eslint.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import globals from 'globals';
55
import eslintConfigPrettier from 'eslint-config-prettier';
66

77
export default defineConfig(
8+
{
9+
ignores: ['dist/', 'node_modules/', '*.js', '*.cjs', '*.mjs', 'eslint.config.js'],
10+
},
811
eslint.configs.recommended,
912
tseslint.configs.recommendedTypeChecked,
1013
eslintConfigPrettier,
@@ -33,8 +36,5 @@ export default defineConfig(
3336
'@typescript-eslint/prefer-nullish-coalescing': 'error',
3437
'@typescript-eslint/strict-boolean-expressions': 'off',
3538
},
36-
},
37-
{
38-
ignores: ['dist/', 'node_modules/', '*.js', '*.cjs', '*.mjs', 'eslint.config.js'],
3939
}
4040
);

0 commit comments

Comments
 (0)