Skip to content

Eslint cant find the config file in the root folder of a project when it is a multi-folder workspace in VS Code... Any suggestions? #18452

Answered by Rec0iL99
PaulHaze asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @PaulHaze, the ESLint core team does not maintain the VSCode extension for ESLint. Please contact the maintainers there for more help.

When I have a root directory with multiple projects in, then it only looks for the config in the top level directory that is open, not in the root of the current project I am working on.

That's how the flat config system is designed. ESLint expects your config file to be in the root of the project and once it finds this file it stops searching for eslint.config.js files, unlike how it worked in the eslintrc config system where config files would be merged together. I believe the best way to solve this is to move all your individual ESLint configuratio…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PaulHaze
Comment options

Answer selected by PaulHaze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants