Prettier & ESLint in VSCode
I'm trying to get Prettier and ESLint working in my Cursor (VSCode offshoot) editor in order to get it to highlight when there are the wrong number of tabs. I've tried installing @nuxt/eslint, eslint-config-prettier, prettier, with no success. On the advice of other posts here, I've removed eslint-config-prettier and prettier. I've tried installing @Anthony Fu/eslint-config but there was an error:
Can anyone help please?
3 Replies
there's no line for antfu. It didn't get installed.
I'll try legacy-peer-deps
grr. Same error.
npx @antfu/eslint-config@latest --legacy-peer-deps
it's in his documentation, but yeah, I can try your suggestion
Okay, I installed antfu under dev, used the rest of his instructions. I'm still having the problem of the incorrect number of tabs not being highlighted. Any suggestions?just fyi here's the instructions I used: https://github.com/antfu/eslint-config?tab=readme-ov-file
GitHub
GitHub - antfu/eslint-config: Anthony's ESLint config preset
Anthony's ESLint config preset. Contribute to antfu/eslint-config development by creating an account on GitHub.
I don't quite understand what you need. The tabs settings can be adjusted by prettier that didn't work with you?