-
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
Can not read config file correctly in a subdirectory! #1289
Comments
@beginor does the validation happen correctly when you use eslint in the terminal (e.g. using the workspace folder as the current cwd and executing |
The repository is here https://github.com/beginor/net-core-app , after clone it, just open the root folder with vscode, do not open as workspace, and change to The root folder of the workspaceis not a nodejs project, there is no The I have just switch from tslint to eslint, since tslint is obsoleted, but this works with tslint before. |
This then sounds like a configuration problem with ESLint itself (if you see it in the terminal). Try if you can run eslint correctly when you are in the client folder. If this is the case then you need to let VS Code know about this as well using |
Thanks you very much, eslint works as expected when I set |
Closing the issue then. |
I have a
client
folder in my project, which contains all client files like (node_modules
,.eslintrc.json
), project structor isclient/.eslintrc.json
client root eslint config, which loadsclient/tsconfig.json
client/projects/web/.eslintrc.json
eslint config for projectweb
, which loadsclient/projects/web/tsconfig.app.json
client/projects/handset/.eslintrc.json
eslint config for projecthandset
, which loadsclient/projects/handset/tsconfig.app.json
when I open file
client/projects/web/src/main.ts
, I got an error from eslintParsing error: Cannot read file '~/net-core-app/projects/web/tsconfig.app.json'. eslint
But the correct path should be
~/net-core-app/client/projects/web/tsconfig.app.json
And my project is here https://github.com/beginor/net-core-app
The text was updated successfully, but these errors were encountered: