-
Notifications
You must be signed in to change notification settings - Fork 345
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
ESLint Configuration Update in VSCode - support custom file names. #1936
Comments
The problem is different naming of the flat config file. Is it necessary that you use a name different than the standard name? |
"We've migrated from .eslintRc.js to a flat config by custom file name In. our pipeline we are pointing to So the default one is we have follow this |
Yes, if you use the default one everything should work without a restart of the ESLint server. |
@dbaeumer : "I renamed |
@dbaeumer : I found the root cause of my issue is my eslint.flat-config.js will look like below.
So when i'm changing |
I accidentally marked as completed and re-opened now |
There is not much I can do about that since I don't know the content of the |
Thanks @dbaeumer for your reply. So the expectation is we have to keep all the configs inside single file named My case is we have splits our |
@dbaeumer : You can find the working example here. I've cloned the sample repository here and forked it into my GitHub account. While everything works as expected with flat config linting, I'm facing an issue with importing linting rules as overrides from other files (e.g., Specifically, when I update the This is the issue I'm encountering. |
All I can think of is adding config support so that users can define on which file changes the server should re-fetch the config. |
We've successfully migrated our ESLint configuration from .eslintrc to the new flat config format, and it is functioning well within our CI/CD pipelines.
To integrate the new eslint.flat-config.js file with VSCode, we've updated our settings.json as follows:
{ "eslint.workingDirectories": [ "directory-1", "directory-2", "directory-3" ], "eslint.options": { "overrideConfigFile": "eslint.flat-config.js" }, "eslint.useFlatConfig": true // Other config }
However, due to the size of our monorepo and the complexity of the flat config with multiple file groups and overrides, we encounter an issue where changes to the ESLint config require a manual restart of the ESLint server in VSCode to take effect.
Question: How can we streamline this process to avoid manually restarting the ESLint server every time we update the configuration?
The text was updated successfully, but these errors were encountered: