You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node version: v20.12.0
npm version: v10.5.0
Local ESLint version: v9.0.0-rc.0
Global ESLint version: no
Operating System: windows
What parser are you using?
Default (Espree)
What did you do?
Configuration
module.exports = [];
// index.ts
Command:
eslint index.ts
What did you expect to happen?
This file doesn't have a matching configuration, so I'd expect a message describing that.
What actually happened?
0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to disable file ignore settings or use "--no-warn-ignored" to suppress this warning
This message is misleading since the file is not ignored "because of a matching ignore pattern". Also, using "--no-ignore" wouldn't help.
I've prepared a PR to show how to improve the error message in the specific case that a file is missing a matching configuration, it's marked as a draft because it requires updating config-array first: #18404.
Environment
Node version: v20.12.0
npm version: v10.5.0
Local ESLint version: v9.0.0-rc.0
Global ESLint version: no
Operating System: windows
What parser are you using?
Default (Espree)
What did you do?
Configuration
// index.ts
Command:
What did you expect to happen?
This file doesn't have a matching configuration, so I'd expect a message describing that.
What actually happened?
This message is misleading since the file is not ignored "because of a matching ignore pattern". Also, using "--no-ignore" wouldn't help.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-zxcj6m
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: