-
Notifications
You must be signed in to change notification settings - Fork 335
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.nodePath
is not hornored when resolving configurations
#1603
Comments
You're using the new configuration file format, so you should set |
Thank you @MariaSolOs . It might be a solution, however it's not possible to extend some predefined configs with I'm still on my way to sort it out. |
The underlying reason for this is very likely the working directory used for the ESLint server when starting it. For security reason this is NOT the workspace folder but the installation directory of VS Code. Since you have relative paths in |
See also #1602 |
It doesn't go well with absolute paths. In my case, the eslint server does start correctly, but it failed to resolve the configurations. |
I create a phantom Thanks for helping. |
I have a small project using
eslint
andvscode-eslint
.In my case, the totally folder node_modules is located somewhere else.
In vscode terminal, eslint works well with NODE_PATH set.
However, eslint server starts correctly within the
vscode-extension
.however, it couldn't resolve configuration well. Some logs are listed.
The eslintrc file is listed as the following:
Here is my small project. You might need to move node_modules into infra folder manually.
Thanks for the help.
The text was updated successfully, but these errors were encountered: