nuxt-modules / eslint

ESLint module for Nuxt.js
MIT License
160 stars 15 forks source link

Nuxt 3 Support #69

Closed HelloAlexPan closed 1 year ago

HelloAlexPan commented 2 years ago

Opening an issue to discuss whether there's plans to support Nuxt 3 and how the community can help.

ThomasBerne commented 2 years ago

The same for nuxt bridge. It doesn't seems there is support about it.

ricardogobbosouza commented 2 years ago

Starting support nuxt3/bridge https://github.com/nuxt-community/eslint-module/pull/70

jonatandorozco commented 1 year ago

Any update on this?

mlbiche commented 1 year ago

@jonorozcoc

Any update on this?

Haven't tried but #68 mentions that it works

jonatandorozco commented 1 year ago

Thanks @mlbiche

I'll check it

mlbiche commented 1 year ago

At the end, I am using eslint-plugin-nuxt, eslint-plugin-vue and @vue/eslint-config-standard. I have removed all Nuxt modules related to ESLint and all babel-related packages. And I have updated my ESLint config from something like:

module.exports = {
  root: true,
  env: {
    'browser': true,
    'node': true
  },
  parserOptions: {
    parser: '@babel/eslint-parser',
    requireConfigFile: false
  },
  extends: ['@nuxtjs', 'plugin:nuxt/recommended']
}

... to something like:

module.exports = {
  root: true,
  env: {
    'browser': true,
    'node': true
  },
  parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module'
  },
  extends: [
    'plugin:nuxt/recommended',
    'plugin:vue/vue3-recommended'
  ],
  overrides: [
    {
      files: ['layouts/*.vue', 'pages/**/*.vue'],
      rules: { 'vue/multi-word-component-names': 'off' }
    }
  ]
}
jonatandorozco commented 1 year ago

@mlbiche is the plugin nuxt/recommended up-to-date with nuxt3?

mlbiche commented 1 year ago

@jonorozcoc At least it does not raise false positives with Nuxt 3. But it seems that it provides fewer rules than this module.

ricardogobbosouza commented 1 year ago

Nuxt3 Support in progress https://github.com/nuxt-community/eslint-module/pull/70

ricardogobbosouza commented 1 year ago

Released v4.0.0