Comments (6)
I can reproduce this. Any ideas how to fix it?
from eslint.
Any ideas how to fix it?
We could catch the error in entryFilter
and rethrow it after doFsWalk
. Or we could call fswalk.walk
inside a promise executor (instead of wrapping it with util.promisify
), so we could reject the promise when entryFilter
throws an error.
Finally, we could open an issue at nodelib
and ask them to handle errors in their filter callbacks, so we don't have to. Upgrading to @nodelib/fs.walk
2.0.0 didn't help, and I couldn't find a closed issue in their repo that matches our problem.
from eslint.
Finally, we could open an issue at
nodelib
and ask them to handle errors in their filter callbacks, so we don't have to. Upgrading to@nodelib/fs.walk
2.0.0 didn't help, and I couldn't find a closed issue in their repo that matches our problem.
This seems like the best solution, but it will probably take some time. Can you open an issue there?
Or we could call
fswalk.walk
inside a promise executor (instead of wrapping it withutil.promisify
), so we could reject the promise whenentryFilter
throws an error.
This would be the easiest solution for us at the moment, though I wouldn't expect it to work if util.promisify
doesn't, but let's try it.
from eslint.
Thanks for the feedback @mdjermanovic.
Finally, we could open an issue at
nodelib
and ask them to handle errors in their filter callbacks, so we don't have to. Upgrading to@nodelib/fs.walk
2.0.0 didn't help, and I couldn't find a closed issue in their repo that matches our problem.This seems like the best solution, but it will probably take some time. Can you open an issue there?
Sure!
Or we could call
fswalk.walk
inside a promise executor (instead of wrapping it withutil.promisify
), so we could reject the promise whenentryFilter
throws an error.This would be the easiest solution for us at the moment, though I wouldn't expect it to work if
util.promisify
doesn't, but let's try it.
I can look into this and see what work works for us.
from eslint.
Issue: nodelib/nodelib#105
from eslint.
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.
from eslint.
Related Issues (20)
- Bug: eslint v8 with flat config and airbnb-base throws cryptic error
- Docs: custom rule tutorial doesn't work with v9 HOT 1
- Scheduled release for May 3rd, 2024 HOT 2
- Change Request: Make it easier to inherit flat configs from the repo root HOT 12
- This method cannot be used with flat config. Add your entries directly into the config array. HOT 1
- Bug: (Config (unnamed): Unexpected key "baseDirectory" found.) HOT 1
- 📈 Tracking: ESLint v9 support HOT 5
- Change Request: use env npm_execpath in alias init HOT 1
- Rule Change: stop fixing prefer-const HOT 2
- Bug: using `--ext` throws an invalid option error HOT 4
- Change Request: (add eslint warnings exit code) HOT 13
- FlatCompat not working anymore with eslint v9 HOT 5
- Bug: (Error when opening configuration files, like eslint.config.mjs and.prettierrc) HOT 2
- Bug: An error occurs when invoking `ESLint#lintFiles()` in Jest HOT 8
- Bug: TypeError [ERR_IMPORT_ATTRIBUTE_MISSING] HOT 1
- Prasing file is taking over a min HOT 1
- Change Request: resolveConfigsRelativeTo HOT 1
- Bug: the `files` and `ignore` configuration properties are being ignored HOT 3
- Docs: double negative in configuration file resolution HOT 2
- Bug: no-undef misunderstand HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint.