neoclide / coc-eslint

Eslint extension for coc.nvim
MIT License
396 stars 24 forks source link

Doesn't work with esLint 8.x #117

Closed timshannon closed 2 years ago

timshannon commented 2 years ago

I believe due to this: https://eslint.org/blog/2021/06/whats-coming-in-eslint-8.0.0#removal-of-undocumented-apis-removal-of-cliengine-and-linter

Eslint works fine from the command line, but I"m getting this error in VIM:

The eslint library loaded from [.....]/node_modules/eslint/lib/api.js doesn't export a CLIEngine. You need at least eslint@1.0.0

I believe vscode-eslint has already implemented these changes:

https://github.com/microsoft/vscode-eslint/issues/972

pavel-playtika commented 2 years ago

It seems like CLIEngine class can be easily replaced with methods from the ESLint class. Source: Migrating to v8.0.0 - ESLint

duykhoa commented 2 years ago

For those who are looking for the answer like me, the solution can be found in @fannheyward's comment

oguzhannsahinn commented 2 years ago

I got the same issue about eslint. If you update the vsCode, eslint will working.