config-inspector
config-inspector copied to clipboard
[BUG] Config Inspector shows that '*.js' matches 'src/main.js'
Config Inspector shows that *.js
matches src/main.js
Repo to reproduce the issue: https://github.com/CloudNStoyan/eslint-config-inspect-filepath-issue
Running npm run lint
shows that the "Root .js files only" Config Item is
not active for src/main.js
because it trips the no-constant-condition
rule:
error Unexpected constant condition no-constant-condition
Note: This only appears after the src/main.js
file was matched by another Config Item (in this case the 'All .js files' one)
Tested on Windows 11, MacOS Sonoma 14.4.1 with Node v20.11.0