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

Add eslint-plugin-nuxt to default config #101

Closed
TheAlexLichter opened this issue May 22, 2020 · 3 comments
Closed

Add eslint-plugin-nuxt to default config #101

TheAlexLichter opened this issue May 22, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@TheAlexLichter
Copy link
Member

No description provided.

@TheAlexLichter TheAlexLichter added the enhancement New feature or request label May 22, 2020
@nathanchase
Copy link

Related issue: nuxt/eslint-plugin-nuxt#110

@nathanchase
Copy link

nathanchase commented Jun 21, 2020

I would think that @nuxtjs/eslint-module could be the single point of dependency, automatically including:

"@nuxtjs/eslint-config": "^3.0.0",
"babel-eslint": "^10.1.0",
"eslint": "^7.2.0",
"eslint-plugin-nuxt": "^1.0.0",

Then, you'd just have a single dependency in a create-nuxt-app. So instead of:

"devDependencies": {
    "@nuxtjs/eslint-config": "^3.0.0",
    "@nuxtjs/eslint-module": "^2.0.0",
    "babel-eslint": "^10.1.0",
    "eslint": "^7.2.0",
    "eslint-plugin-nuxt": "^1.0.0",
  }

You'd just have:

"devDependencies": {
    "@nuxtjs/eslint-module": "^2.0.0",
  }

or whichever package is the most encompassing as "Nuxt recommended defaults"?

@antfu
Copy link
Member

antfu commented Mar 19, 2024

eslint-plugin-nuxt's rules are mostly for Nuxt 2 and most of them are no longer useful in Nuxt 3. We had the new @nuxt/eslint-plugin introduced in #332, which is included in the new eslint-config. Consider this is resolved.

@antfu antfu closed this as completed Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants