eslint icon indicating copy to clipboard operation
eslint copied to clipboard

Support ESLint Flat Config

Open ModyQyW opened this issue 1 year ago • 1 comments

closes https://github.com/nuxt-modules/eslint/issues/115

  1. replace vite-plugin-eslint with vite-plugin-eslint2, which supports flat config, active and maintained by me
  2. Just set eslintPath: 'eslint/use-at-your-own-risk' and eslint.config.js, and flat config should be done

While it would be possible to auto-detect to determine the ESLint version and whether to enable flat config by default, I think this would add unnecessary complexity. I will add this function to the PR if you think it's worth it. Thank you.

ModyQyW avatar Feb 20 '24 08:02 ModyQyW

For someone who comes here later, try https://eslint.nuxt.com/ instead.

ModyQyW avatar Mar 20 '24 07:03 ModyQyW