Comments (9)
You should install eslint module in your project, or you can add "eslint.enable": false
in .vim/coc-settings.json
of your project.
from coc-eslint.
This error is caused by coc-eslint
while doing textDocument/willSaveWaitUntil
request failed. Does your project has .eslintrc.js
file? Or any eslint config file?
from coc-eslint.
Try :CocCommand eslint.createConfig
or eslint --init
to create a config file.
from coc-eslint.
Could be caused by broken eslint module.
from coc-eslint.
This is caused when you are using coc-eslint
but haven't installed eslint
or no .eslintrc.js
found.
@chemzqm Maybe coc-eslint
should be disabled when no eslint found.
from coc-eslint.
I have a .eslintrc.yml
in my ~/.config/nvim/
which is also found when I edit js files with create-react-app
from coc-eslint.
ok, I tried to yarn add eslint eslint-plugin-react @typescript-eslint/parser @typescript-eslint/eslint-plugin
, still get an error that he cannot find @typescript-eslint/parser
.
Whatever, I disabled it now with "eslint.enable": false
and all is good.
I mean, I actually don't need eslint if "tsserver.formatOnType": true
is doing the same job, right?
from coc-eslint.
Edit: "tsserver.formatOnType"
does not do the same. Think I still need eslint?!
from coc-eslint.
ok found the solution and for the record:
I remove following lines from my ~/.config/nvim/.eslintrc.yml
:
extends:
- eslint:recommended
- plugin:react/recommended
parser: '@typescript-eslint/parser'
plugins: ['@typescript-eslint/eslint-plugin']
and added them back to a project-local eslintrc.yml
(a project which uses TS)
now everything works with the nextjs project, I just needed to yarn add eslint -D
but no local eslintrc.yml
is needed if the global one is plain.
from coc-eslint.
Related Issues (20)
- Eslint 8 support HOT 1
- Coc-eslint doesn't work with eslint@8 HOT 10
- undeprecate `eslint.enable`
- coc-eslint does not detect eslintrc unless it is placed in the root folder HOT 4
- Connection to server got closed. Server will not be restarted. HOT 1
- Usage with XO
- Is there any configuration for easily opening a recommendation link? HOT 1
- The "initializing eslint" notification never disappears HOT 2
- [bug] Diagnostic level hard-coded to Unnecessary/Warning/1 for no-unused-vars rule HOT 3
- UnhandledRejection opening markdown files HOT 22
- Stuck as "Initializing eslint" popup
- ESLint 8 flat config support HOT 3
- Parsing error: ESLint was configured to run on .... However that TSConfig does not include this file HOT 1
- how does eslint work
- shoudFix parameter was false HOT 4
- Need some clarification
- Coc-eslint not working with yarn Plug'n'Play HOT 2
- Setting `useFlatConfig` to true breaks ESLint integration for projects that use the older config style HOT 1
- when autoFixOnSave fails, the file can't be saved HOT 2
- is coc-eslint still maintained? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-eslint.