-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unconfigured file reported as matched #59
Comments
Similar to #66 it would be nice if some parts of Essentially, this could be replaced by an exposed config-inspector/src/configs.ts Lines 181 to 197 in 8e34306
And if the matching and ignoring logic of |
Reusing |
Originally reported in eslint/eslint#18475.
With this config:
for a file named
fail.txt
, config-inspector reports that it is matched by 1 config item (the one in eslint.config.js).Which is true, this config item does match this file, but files not matched by at least one config object with a pattern that doesn't end with
/*
or/**
are effectively ignored as "unconfigured". So for this file, it would make more sense to report it as "not included or has been ignored".Repro: https://stackblitz.com/edit/stackblitz-starters-99hktx
Flat config's matching & ignoring logic is here:
https://github.com/eslint/rewrite/blob/830424fd10f0dfe88ee4b1a14b74095db7654476/packages/config-array/src/config-array.js#L838-L1009
The text was updated successfully, but these errors were encountered: