-
I'm in the process of migrating over to v9 and am having a hard time getting ignorePatterns: ['dev', 'dist', 'tests', 'tsconfig.json'] In the new flat config file, I converted this to look like: ignores: [
'**/dev/*',
'**/dist/*',
'**/tests/*',
'tsconfig.json',
], but when I run eslint, I get a bunch of errors in files that should be getting ignored. Here are some of my testing to try and figure out how it works: ignores: [] Result: 7465 problems (7465 errors, 0 warnings) ignores: [
'**/dev/*'
] Result: 5159 problems (5159 errors, 0 warnings) ignores: [
'**/dev/*',
'**/dist/*'
] Result: 2157 problems (2157 errors, 0 warnings) ignores: [
'**/dev/*',
'**/dist/*',
'**/tests/*'
] Result: 2481 problems (2481 errors, 0 warnings) At this point, I can't get the errors to go down anymore and when I look at the first offending file, it's in this directory:
Why is this file not being ignored with the Incase it matters, my |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
For whatever reason removing import js from '@eslint/js';
export default [
js.configs.recommended,
{
// ...
}
] I even copy/pasted all the rules from |
Beta Was this translation helpful? Give feedback.
-
Have you tried putting export default [
{
ignores: [
'**/dev/*',
'**/dist/*',
'**/tests/*',
'tsconfig.json',
]
},
js.configs.recommended,
{
// ...
}
] |
Beta Was this translation helpful? Give feedback.
Have you tried putting
ignores
in a config object by itself? #17429