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
Config Inspector shows that
*.js
matchessrc/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 forsrc/main.js
because it trips theno-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