Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ESLint Flat Config #124

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Support ESLint Flat Config #124

wants to merge 3 commits into from

Conversation

ModyQyW
Copy link

@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
Author

ModyQyW commented Mar 20, 2024

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

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