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: unhandled error in lintFiles
with glob patterns when config is invalid
#18250
Comments
I can reproduce this. Any ideas how to fix it? |
We could catch the error in Finally, we could open an issue at |
This seems like the best solution, but it will probably take some time. Can you open an issue there?
This would be the easiest solution for us at the moment, though I wouldn't expect it to work if |
Thanks for the feedback @mdjermanovic.
Sure!
I can look into this and see what work works for us. |
Issue: nodelib/nodelib#105 |
got same error when using nx and config contains: languageSettings: { parserOptions: { project: ["./tsconfig.*?.json"] } } looks like schema does not contain that field and error handling processed incorrectly (as mentioned above) console output: node_modules/@nx/eslint/node_modules/@humanwhocodes/object-schema/src/object-schema.js:270
throw new UnexpectedKeyError(key);
^
UnexpectedKeyError: Unexpected key "languageSettings" found.
|
Environment
Node version: v21.7.1
npm version: v10.5.0
Local ESLint version: v9.0.0-rc.0 (Currently used)
Global ESLint version: Not found
Operating System: darwin 23.4.0
What parser are you using?
Default (Espree)
What did you do?
Configuration
What did you expect to happen?
lintFiles
should throw an error in the current execution context because the config is invalid.What actually happened?
The process terminated abnormally while running
lintFiles
because of an uncaught error in an asynchronous callback.The callback in question is the
entryFilter
of@nodelib/fs.walk
, which apparently is not expected to throw errors.Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-swoxsq
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: