-
Notifications
You must be signed in to change notification settings - Fork 342
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
Plugin prettier not found #794
Comments
@LadIQe does the validation happen correctly when you use eslint in the terminal. If this is the case can you please provide me with a GitHub repository I can clone that demos what you are experiencing. |
@dbaeumer hello, thank you for reply. Yes validation is working in terminal, but inside VS Code it doesnt work. I can give you repo for eslint-biq, which we are using: than we have .eslintrc
Unfortunately, I cant give you repo for project, because its our internal private project. |
A GitHub repository I can clone that demos what you are seeing is highly appreciated. Without it it will be hard to understand what causes this for you. |
yes I understand you, but as I said, its project for our customer and we cant share any code. But if it can help you, its based on create-react-app where we are using eslint-config-biq, thats all almost forget, we are using docker, but as I said, I cant give you repo for project, and also we are using gitlab, not github |
I wonder if this is related to this issue (which is still impacting me)... Seems like ESLint / VSCode cannot find plugins when running as part of a multi project workspace, but if I open the project in its own VSCode window (or run lint via terminal), it works fine. Using create-react-app in case that makes a difference |
@LadIQe it must not be your private repository. I could also be a repository that only contains an example that demos what you are seeing. |
@dbaeumer here is sample project |
@LadIQe in the example you provide which folder do you open in VS Code ? |
@dbaeumer whole project, because we are constantly changing FE and BE code, so always switching is not a good idea before it works great but now after upgrading packages it doesnt work |
Then you need to set the workingDirectory settings to tell VS Code eslint to treat them as working dirs. See https://github.com/microsoft/vscode-eslint. Best with |
So do we need to set every single directory in this setting? e.g. if I have one large workspace with 10+ projects, and cloning other repos regularly, I need to update this setting each time? Is there not a way to have this auto detect to current directory you are working in? Thanks! |
@dbaeumer thank you for your quick fix, now its working like before (at least in directory, which is set under |
For auto detection see: #745 The problem is that the auto detection is not trivial without reimplementing internals of the ESLint npm module. Interestingly devs have no problem doing a cwd in a terminal to make this work since eslint in the terminal will fail in the root directories of these setups as well. Or does this work in the roots for you and not in VS Code. |
I spoke with other devs in my team and we are going to use But interestingly, before it worked well |
Hello, I have problem with prettier plugin not loaded correctly or not found. We upgraded whole project to newer packages, everything works fine, but we found out, that prettier/eslint is not working at all (at least in VS Code, in terminal it works).
We upgraded from
to newer one:
and eslint/prettier stop working in VS Code, here is info from vs code terminal
We have also BE, where is same devDep configuration as old one and thats working correctly. Also I check all eslint configuration and everything looks good
Now I dont know if problem is with eslint plugin for VS Code or with eslint/prettier
The text was updated successfully, but these errors were encountered: