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

is coc-eslint still maintained? #146

Open
laoshaw opened this issue Mar 9, 2024 · 5 comments
Open

is coc-eslint still maintained? #146

laoshaw opened this issue Mar 9, 2024 · 5 comments

Comments

@laoshaw
Copy link

laoshaw commented Mar 9, 2024

I could never get coc-eslint to work with coc.nvim with typescript, i.e. to give linter warns and errors inside vim while I'm writing the code, I noticed this project has not been updated for two years, and warns against newest typescript, is this still a good option to use with vim and typescript today?

@fannheyward
Copy link
Member

I'm using coc/coc-eslint with TS 5.3 without any problems, any error messages?

@laoshaw
Copy link
Author

laoshaw commented Mar 9, 2024

message says it has to be ts5.4.0 but a default install is now 5.4.2.

the key problem though, is vim with coc-eslint, coc-prettier, coc-volar(for vue) and coc-tsserver installed I no longer can get vim to show warnings and errors while typing or at saving time. I have to switch bake to ALE. I want to use vim/coc-eslint/coc-prettier to do typescript work but it's not working for me anymore.

@laoshaw
Copy link
Author

laoshaw commented Mar 9, 2024

Also, to get that work, I had to pnpm various packages, do cocconfig, change .vimrc, it just kept breaking over the years. on the other hand, coc-clangd, coc-pyright etc are solid for a vim IDE development experience.

@laoshaw
Copy link
Author

laoshaw commented Mar 9, 2024

even for vue project, while all eslint/prettier works well inside script portion for vue filetypes, when editing standalone ts files, eslint and prettier does nothing.

@fannheyward
Copy link
Member

message says it has to be ts5.4.0 but a default install is now 5.4.2.

Any screenshot? I want to know who output this message, eslint or prettier or tsserver.

npm create vue@latest to create vue-test project, select to enable TypeScript, ESLint, Prettier

image

npm list

[email protected] /Users/fannheyward/src/vue-test
├── @rushstack/[email protected]
├── @tsconfig/[email protected]
├── @types/[email protected]
├── @vitejs/[email protected]
├── @vue/[email protected]
├── @vue/[email protected]
├── @vue/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

extensions:

  • coc-tsserver 2.1.4
  • coc-eslint 1.6.0
  • coc-prettier 9.3.2
  • coc-volar 0.35.0

Tests:

vim src/App.vue, make some errors in script

image

Formatting works too.

when editing standalone ts files, eslint and prettier does nothing

I don't know what you mean standalone files, are they in TS project?

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

2 participants