-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Coc-eslint doesn't work with eslint@8 #127
Comments
I downgraded to |
Can't reproduce, try check the output https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel. |
I think I have broken .eslintrc.js, but VSCode's eslint extension still working, and coc-eslint doesn't display any error message or any complaints
|
verbose
|
OK it is from "eslint.options": { "envs": ["node", "browser", "es2021"] } According to the README.md, I followed the link to make sure that "eslint.options": {
"overrideConfig": {
"env": ["node", "browser", "es2021"]
}
}, But here is what I got
|
You have to use something like: "env": {
"browser": true,
"node": true
} according to https://eslint.org/docs/user-guide/configuring/language-options#specifying-environments |
Not it is working, thank you! You should display some error message without pushing us to open the verbose logs. |
It's logged to info, no need for verbose message. |
Giving this thread a +1 as a fix for getting coc-eslint working with eslint@8 |
It works with eslint@8, check the output channel of eslint. |
It seems that coc-eslint doesn't work with eslint@8. I guessed that this is due to upgrading eslint from major version 7 to major version 8 with some breaking changes, because there was another issue due to these breaking changes that I solved alhadulilah. But now, coc-eslint doesn't work with eslint@8. I tried eslint extension of VSCode to detect from where this issue came. Eslint in VSCode works.
The text was updated successfully, but these errors were encountered: