config-inspector icon indicating copy to clipboard operation
config-inspector copied to clipboard

[BUG] Config Inspector shows that '*.js' matches 'src/main.js'

Open CloudNStoyan opened this issue 9 months ago • 0 comments

Config Inspector shows that *.js matches src/main.js

Config Inspector showing 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

CloudNStoyan avatar May 08 '24 09:05 CloudNStoyan