Skip to content

Conversation

@emilbjorklund
Copy link
Contributor

Added a files-pattern represented as **/*.js to the js.js config file, and exposed that as the jsConfig choice rather than baseConfig.

This prevents a situation where eslint 9.6+ is used for linting other languages, and then fails due to the baseConfig assuming that all files are JS by default. Potentially a breaking change? Not sure.

@emilbjorklund
Copy link
Contributor Author

emilbjorklund commented May 2, 2025

Note: I tried writing a test for this, but it quickly became complex, as non-supported files seem to be ignored as long as there isn’t a plugin for adding language support - so, testing if CSS files are ignored via a pattern doesn’t matter unless we include a plugin to enable CSS support in the test suite, which quickly became a bit of a hassle...

@emilbjorklund emilbjorklund requested a review from markusn May 2, 2025 12:11
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 this pull request may close these issues.

2 participants