Skip to content

Issue with 10.7.0 after upgrade from 10.6.2 #3004

@jaxwilko

Description

@jaxwilko

Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have read the FAQ and my problem is not listed.

Tell us about your environment

  • ESLint version: 8.57.1
  • eslint-plugin-vue version: 10.7.0
  • Vue version: ^3.4.10
  • Node version: 20
  • Operating System: Linux (GH Actions)

Please show your full configuration:

{
    "env": {
        "es6": true,
        "browser": true,
        "commonjs": true
    },
    "extends": [
        "airbnb-base",
        "plugin:vue/recommended"
    ],
    "plugins": [
        "vue"
    ],
    "parser": "vue-eslint-parser",
    "parserOptions": {
        "requireConfigFile": false,
        "babelOptions": {
            "presets": ["@babel/preset-env"]
        },
        "ecmaVersion": 2021,
        "sourceType": "module"
    },
    "settings": {
        "import/resolver": {
            "alias": {
                "extensions": [".js", ".vue"]
            }
        }
    },
    "rules": {
        "class-methods-use-this": ["off"],
        "indent": ["error", 4, {
            "SwitchCase": 1
        }],
        "max-len": ["off"],
        "new-cap": ["error", { "properties": false }],
        "no-alert": ["off"],
        "no-param-reassign": ["error", {
            "props": false
        }],
        "no-plusplus": ["off"],
        "no-continue": ["off"],
        "vue/html-indent": ["error", 4],
        "vue/html-self-closing": ["error", {
            "html": {
                "void": "never",
                "normal": "any",
                "component": "any"
            },
            "svg": "always",
            "math": "always"
        }],
        "vue/no-v-html": ["off"],
        "vue/multi-word-component-names": ["off"],
        "vue/no-mutating-props": ["off"],
        "vue/require-v-for-key": ["off"],
        "vue/valid-v-for": ["off"],
        "vue/first-attribute-linebreak": ["off"],
        "vue/max-attributes-per-line": ["off"],
        "vue/require-prop-types": ["off"]
    }
}

What did you do?
During a PR, we run eslint on push:

npx eslint .

What did you expect to happen?
On vuejs/eslint-plugin-vue v10.6.2 tests pass, when upgrading to v10.7.0 the same was expected.

What actually happened?
Tests failed:

Oops! Something went wrong! :(

ESLint: 8.57.1

Error: ESLint configuration in .eslintrc.json » plugin:vue/recommended » /home/runner/work/worker-path/plugins/vendor/checkout/node_modules/eslint-plugin-vue/dist/configs/vue3-strongly-recommended.js is invalid:
- Unexpected top-level property "default".

Referenced from: /home/runner/work/worker-path/plugins/vendor/checkout/node_modules/eslint-plugin-vue/dist/index.js
at ConfigValidator.validateConfigSchema (/home/runner/work/worker-path/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2177:19)
at ConfigArrayFactory._normalizeConfigData (/home/runner/work/worker-path/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3019:19)
at ConfigArrayFactory._loadConfigData (/home/runner/work/worker-path/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2984:21)
at ConfigArrayFactory._loadExtendedShareableConfig (/home/runner/work/worker-path/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3285:21)
at ConfigArrayFactory._loadExtends (/home/runner/work/worker-path/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3156:25)
at ConfigArrayFactory._normalizeObjectConfigDataBody (/home/runner/work/worker-path/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3095:25)
at _normalizeObjectConfigDataBody.next (<anonymous>)
at ConfigArrayFactory._normalizeObjectConfigData (/home/runner/work/worker-path/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3040:20)
at _normalizeObjectConfigData.next (<anonymous>)
at ConfigArrayFactory._normalizeObjectConfigDataBody (/home/runner/work/worker-path/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3095:25)

Repository to reproduce this issue
Repo: https://github.com/jaxwilko/eslint-plugin-vue-10.7.0-issue-example
Error in action: https://github.com/jaxwilko/eslint-plugin-vue-10.7.0-issue-example/actions/runs/21136254550/job/60778886500
Branch showing eslint working after downgrading to 10.6.2: https://github.com/jaxwilko/eslint-plugin-vue-10.7.0-issue-example/actions/runs/21136356723/job/60779208401

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions