Skip to content

Commit 828e891

Browse files
committed
Fix ESLint config to properly ignore dist folder
- Move ignores to separate config object for ESLint 9 compatibility - Update ignore patterns to use proper glob syntax - Ensure dist/ and minified files are excluded from linting
1 parent 8a4c538 commit 828e891

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eslint.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import js from '@eslint/js';
22
import globals from 'globals';
33

44
export default [
5+
{
6+
ignores: ['node_modules/**', '**/*min.js', '**/*bundle*', 'build/**', 'dist/**'],
7+
},
58
js.configs.recommended,
69
{
710
languageOptions: {
@@ -50,6 +53,5 @@ export default [
5053
'wrap-regex': 'warn',
5154
'yoda': 'error',
5255
},
53-
ignores: ['node_modules', '*min.js', '*bundle*', 'build/*', 'dist/*'],
5456
},
5557
];

0 commit comments

Comments
 (0)