-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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: Can't reproduce root: true
behaviour in node API
#18639
Comments
|
Hi @nzakas, thanks for the quick response! |
@sahariko I have no idea because you didn't provide a reproduction case. I will say, however, that the CLI uses the Node.js API, so it's more likely that there's a bug in your setup rather than a bug in the API. |
Gotcha, I'll double-check and see about creating a reproduction (not so straight-forward since it's a complex proprietary project). |
Environment
Node version: v18.12.1
npm version: v8.19.2
Local ESLint version: Not found
Global ESLint version: Not found
Operating System: darwin 22.6.0
What parser are you using?
@typescript-eslint/parser
What did you do?
When working in a repo that includes several cascading ESLint configs, you can use the
root: true
configuration option, and that would work great when using ESLint's CLI.But it seems like ESLint's node API doesn't offer a compatible configuration option.
What did you expect to happen?
Node API should support the same capabilities as the CLI.
What actually happened?
Couldn't make it run.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/vitejs-vite-dppjdj?file=src/main.ts&terminal=dev
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: