Comments (5)
You're using wrong filetypes, you should use typescriptreact
from coc-eslint.
What was the solution here? I've pieced together from above that it might be autocmd BufEnter *.tsx set filetype=typescriptreact
but then I get neither coc-eslint nor syntax highlighting. =/
from coc-eslint.
Oh, I've just figured it out, the autocmd isn't needed, instead here's what I've put in my CocConfig
{
"eslint.filetypes": ["javascript", "javascriptreact", "typescript", "typescriptreact"]
}
And here's the relevant line in coc-nvim's documentation: https://github.com/neoclide/coc.nvim/blob/e8e583c8e0baed14cf5dccd89b83dd0103c24d48/doc/coc.txt#L922
from coc-eslint.
Solved it by adding
autocmd BufEnter *.tsx set filetype=typescript
to my nvim.init
from coc-eslint.
Thanks, with your help I got it working perfectly now. What syntax are you using for ts/tsx?
from coc-eslint.
Related Issues (20)
- Cannot read properties of null (reading 'name') HOT 1
- The rule no-undef doesn't work? HOT 6
- 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
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.