You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node version: 22.2.0
npm version: 10.7.0
Local ESLint version: 9.2.0
Global ESLint version: 9.2.0
Operating System: windows-2022, 20240514.3.0
What parser are you using?
Default (Espree)
What did you do?
As of Node.js v22, the linting task no more passes on GitHub Actions' Windows runner with the error of No files matching the pattern "linebreak-style: [2, windows]" were found. See also test results.
Run npm run eslint -- --rule 'linebreak-style: [2, windows]'
> smartbanner.js@1.24.1 eslint
> eslint src/*.js linebreak-style: [2, windows]
Oops! Something went wrong! :(
ESLint: 9.2.0
No files matching the pattern "linebreak-style: [2, windows]" were found.
Please check for typing mistakes in the pattern.
Error: Process completed with exit code 1.
the command should be eslint src/*.js --rule linebreak-style: [2, windows]. seems you were not using eslint directly, it might be a bug in the tool, not eslint itself.
the command should be eslint src/*.js --rule linebreak-style: [2, windows]. seems you were not using eslint directly, it might be a bug in the tool, not eslint itself.
Yes, I missed this line while reading the original post.
So, eslint's error message is correct given that the command to run eslint was eslint src/*.js linebreak-style: [2, windows]. The problem is that the --rule part of the command is lost somewhere in the process before running eslint.
Environment
Node version: 22.2.0
npm version: 10.7.0
Local ESLint version: 9.2.0
Global ESLint version: 9.2.0
Operating System: windows-2022, 20240514.3.0
What parser are you using?
Default (Espree)
What did you do?
As of Node.js v22, the linting task no more passes on GitHub Actions' Windows runner with the error of
No files matching the pattern "linebreak-style: [2, windows]" were found.
See also test results.This does not occur on Node.js v21.
Full case can be inspected at ain/smartbanner.js#750
Configuration
What did you expect to happen?
Passing linting task similar to Node.js v21
What actually happened?
See also test suite.
Link to Minimal Reproducible Example
ain/smartbanner.js#750
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: