replace vite-plugin-eslint with vite-plugin-eslint2, which supports flat config, active and maintained by me
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.
closes https://github.com/nuxt-modules/eslint/issues/115
eslintPath: 'eslint/use-at-your-own-risk'
andeslint.config.js
, and flat config should be doneWhile 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.