Skip to content

Support ESLint Flat Config#124

Closed
ModyQyW wants to merge 3 commits intonuxt-modules:mainfrom
ModyQyW:main
Closed

Support ESLint Flat Config#124
ModyQyW wants to merge 3 commits intonuxt-modules:mainfrom
ModyQyW:main

Conversation

@ModyQyW
Copy link
Copy Markdown

@ModyQyW ModyQyW commented Feb 20, 2024

closes #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 ModyQyW mentioned this pull request Feb 20, 2024
antfu added a commit to nuxt/eslint that referenced this pull request Mar 18, 2024
Thanks to nuxt-modules/eslint#124
Co-authored-by: ModyQyW <ModyQyW@users.noreply.github.com>
@ModyQyW
Copy link
Copy Markdown
Author

ModyQyW commented Mar 20, 2024

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

@ModyQyW ModyQyW closed this by deleting the head repository Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ESLint Flat Config

1 participant