eslint icon indicating copy to clipboard operation
eslint copied to clipboard

Nuxt 3 Support

Open HelloAlexPan opened this issue 3 years ago • 8 comments

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

HelloAlexPan avatar Jan 03 '22 02:01 HelloAlexPan

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

ThomasBerne avatar Jan 14 '22 08:01 ThomasBerne

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

ricardogobbosouza avatar Feb 15 '22 18:02 ricardogobbosouza

Any update on this?

jonatandorozco avatar Sep 30 '22 21:09 jonatandorozco

@jonorozcoc

Any update on this?

Haven't tried but #68 mentions that it works

mlbiche avatar Oct 04 '22 13:10 mlbiche

Thanks @mlbiche

I'll check it

jonatandorozco avatar Oct 05 '22 01:10 jonatandorozco

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' }
    }
  ]
}

mlbiche avatar Oct 06 '22 07:10 mlbiche

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

jonatandorozco avatar Oct 06 '22 23:10 jonatandorozco

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

mlbiche avatar Oct 07 '22 07:10 mlbiche

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

ricardogobbosouza avatar Nov 21 '22 12:11 ricardogobbosouza

Released v4.0.0

ricardogobbosouza avatar Mar 08 '23 12:03 ricardogobbosouza