nuxt-modules / eslint

ESLint module for Nuxt.js
MIT License
159 stars 15 forks source link

ESLint Flat Config #115

Closed GaborTorma closed 8 months ago

GaborTorma commented 1 year ago

Please support ESLint Flat Config.

I received the following error message when I try to use ES6 eslint.config.js: Cannot start nuxt: No ESLint configuration found in

GaborTorma commented 1 year ago

Reproduction link: https://stackblitz.com/edit/nuxt-starter-41k9jt?file=eslint.config.js

SymphonySimper commented 1 year ago

+1

yveeven commented 12 months ago

+1

Eazash commented 11 months ago

There are open issues and an open PR on the downstream cause of this (gxmari007/vite-plugin-eslint#78 and gxmari007/vite-plugin-eslint#82). That repo does not seem to be well maintained lately, with the last release being over a year ago, with a slew of open issues and PRs. (gxmari007/vite-plugin-eslint#83, gxmari007/vite-plugin-eslint#75).

@GaborTorma You should consider either patching the package or using a fork

sandro-git commented 10 months ago

how do you handle this issue ? what's the best way to do it work ?

ModyQyW commented 9 months ago

Guys, please track https://github.com/nuxt-modules/eslint/pull/124.

If you are in a rush and can't wait to merge, use patch-pacakge for npm and yarn v1, use pnpm patch for pnpm, use yarn patch for yarn v2 and above.

And please reconsider. You may not need to run eslint in build process. See https://github.com/ModyQyW/vite-plugin-eslint2#faq for more info.