Skip to content
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

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

Closed
CloudNStoyan opened this issue May 8, 2024 · 0 comments · Fixed by #57
Closed

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

CloudNStoyan opened this issue May 8, 2024 · 0 comments · Fixed by #57

Comments

@CloudNStoyan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant