Skip to content
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

How to use coc-eslint with yarn2 project? #49

Closed
fannheyward opened this issue Feb 15, 2020 · 3 comments
Closed

How to use coc-eslint with yarn2 project? #49

fannheyward opened this issue Feb 15, 2020 · 3 comments

Comments

@fannheyward
Copy link
Member

fannheyward commented Feb 15, 2020

coc-eslint already support yarn2 project, but you need do following setup:

  1. yarn add @yarnpkg/pnpify in your project, this will add pnpify to your project.
  2. yarn pnpify --sdk, this will generate directory .vscode/pnpify that contains eslint

Now coc-eslint can load ESLint automatically.

@chemzqm
Copy link
Member

chemzqm commented Feb 15, 2020

Need upgrade to latest vscode-eslint https://github.com/microsoft/vscode-eslint

@fannheyward
Copy link
Member Author

fannheyward commented Feb 15, 2020

This is not an issue, but notes for yarn2 project usage. coc-eslint already support yarn2 on #48.

@dzintars
Copy link

Tried earlier to follow up these instructions but without any success.
Yesterday made a clean Yarn setup - 1.23 accessible globally and Berry locally for project. In VS Code works as expected without any issues, but in nvim with CoC still no luck.
Today ended up with setting up LanguageClient + Server and got it working, but i think then i should remove CoC.
I am bad at providing meaningful feedback, as I have no idea how all this crazy stuff is tied together and why it is made so complicated for newbies (no precise/complete documentation). All this thing rarely works out of the box. And i have no idea, why ESLint started to work only after installing TypeScript language server. Later will try to clean up system again and to start from scratch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants