Bug: (ignores
not respected when using flat config). Expands and scans ignored files!
#18234
Labels
works as intended
The behavior described in this issue is working correctly
Environment
Node version: v20.11.1
npm version: v10.2.4
Local ESLint version: v8.57.0 (Currently used)
Global ESLint version: Not found
Operating System: darwin 23.3.0
What parser are you using?
@typescript-eslint/parser
What did you do?
Configuration
dist/foo.js
//eslint-disable-next-line @typescript-eslint/no-explicit-any
What did you expect to happen?
I expected the linter to not look into the
dist
folderI have tried ignoring it using
/dist,
/dist/,
**/dist/,
dist//` and nothing works. It still scans that file, finds an offending inline comment and fails!Please see the repro (run
npm run lint
).What actually happened?
But I don't have this rule enabled!! It's finding a string to disable this rule in a compiled backaged that bundles in a dependency that has this rule disabled inline somewhere
Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-jzanfz
Participation
Additional comments
Just want to highlight that I can't affect the code that's in
dist
folder. It's bundling in dependencies, which have eslint comments! I ignore the directory so it's a bug that exceptions (about 100k of them) get thrown by the linter.I placed some debug statements inside of the eslint lib, and I see that the
ignores
that I pass get discarded, and the list only contains[ '**/node_modules/', '.git/' ]
which I think is due to a bug somewhere in eslint code.The text was updated successfully, but these errors were encountered: