Bug: config files
and ignores
elements are not being validated
#17434
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
repro:yes
Environment
Node version: v20.5.0
npm version: v9.8.0
Local ESLint version: v8.46.0 (Currently used)
Global ESLint version: Not found
Operating System: darwin 22.5.0
What parser are you using?
Default (Espree)
What did you do?
I run
eslint .
with a config that contains an invalid element in thefiles
array, e.g.:Configuration
What did you expect to happen?
There should be an error message indicating that
files
contains an invalid value.What actually happened?
A generic error message:
For comparison, here is the error message printed by an eslintrc config with
overrides: [{ files: ["**/*.js", undefined] }]
:Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-vmehy7?file=eslint.config.js&view=editor
Participation
Additional comments
A similar problem occurs when an
ignores
pattern is invalid. For example, when runningeslint .
with this config:The error message looks like this:
The text was updated successfully, but these errors were encountered: