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:
npm ERR! code ERESOLVEnpm ERR! ERESOLVE could not resolvenpm ERR! npm ERR! While resolving: undefined@undefinednpm ERR! Found: @antfu/[email protected]npm ERR! node_modules/@antfu/eslint-confignpm ERR! @antfu/eslint-config@"2.16.0" from the root projectnpm ERR! npm ERR! Could not resolve dependency:npm ERR! @antfu/eslint-config@"2.16.0" from the root projectnpm ERR! npm ERR! Conflicting peer dependency: [email protected]npm ERR! node_modules/eslintnpm ERR! peer eslint@">=9.0.0" from @eslint-react/[email protected]npm ERR! node_modules/@eslint-react/eslint-pluginnpm ERR! peerOptional @eslint-react/eslint-plugin@"^1.5.8" from @antfu/[email protected]npm ERR! node_modules/@antfu/eslint-confignpm ERR! @antfu/eslint-config@"2.16.0" from the root projectnpm ERR! npm ERR! Fix the upstream dependency conflict, or retrynpm ERR! this command with --force or --legacy-peer-depsnpm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! code ERESOLVEnpm ERR! ERESOLVE could not resolvenpm ERR! npm ERR! While resolving: undefined@undefinednpm ERR! Found: @antfu/[email protected]npm ERR! node_modules/@antfu/eslint-confignpm ERR! @antfu/eslint-config@"2.16.0" from the root projectnpm ERR! npm ERR! Could not resolve dependency:npm ERR! @antfu/eslint-config@"2.16.0" from the root projectnpm ERR! npm ERR! Conflicting peer dependency: [email protected]npm ERR! node_modules/eslintnpm ERR! peer eslint@">=9.0.0" from @eslint-react/[email protected]npm ERR! node_modules/@eslint-react/eslint-pluginnpm ERR! peerOptional @eslint-react/eslint-plugin@"^1.5.8" from @antfu/[email protected]npm ERR! node_modules/@antfu/eslint-confignpm ERR! @antfu/eslint-config@"2.16.0" from the root projectnpm ERR! npm ERR! Fix the upstream dependency conflict, or retrynpm ERR! this command with --force or --legacy-peer-depsnpm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Can anyone help please?
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community