Skip to content

Parsing error in VS 2022 #223

Open
Open
@johnwc

Description

@johnwc

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I'm using eslint-plugin-vue.
  • I'm sure the problem is a parser problem. (If you are not sure, search for the issue in eslint-plugin-vue repo and open the issue in eslint-plugin-vue repo if there is no solution.
  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.

What version of ESLint are you using?

8.52

What version of eslint-plugin-vue and vue-eslint-parser are you using?

  • vue-eslint-parser@9.3.2
  • eslint-plugin-vue@9.18.1

What did you do?

Configuration
module.exports ={
    env: {
        browser: true,
        es2021: true
    },
    extends: [
        "eslint:recommended",
        "plugin:@typescript-eslint/recommended",
        "plugin:vue/base",
        "plugin:vue/vue3-essential",
        "plugin:vue/vue3-recommended"
    ],
    parser: "vue-eslint-parser",
    parserOptions: {
        ecmaVersion: "latest",
        parser: {
            ts: '@typescript-eslint/parser',
            js: '@typescript-eslint/parser',
            '<template>': 'espree',
        },
        sourceType: "module",
        project: "tsconfig.json",
        tsconfigRootDir: __dirname,
        extraFileExtensions: ['.vue'],
    },
    plugins: [
        "@typescript-eslint",
        "vue",
        "deprecation"
    ],
    rules: {
        "deprecation/deprecation": "warn",
        indent: [
            "error",
            4,
            {
                "SwitchCase": 1
            }
        ],
        "linebreak-style": [
            "warn",
            "unix"
        ],
        quotes: [
            "warn",
            "single"
        ],
        semi: [
            "error",
            "always"
        ]
    }
}

image

What did you expect to happen?

No error/warnings

What actually happened?

image

Link to Minimal Reproducible Example

N/A

Additional comments

No matter what configuration I attempt, I can not get VS 2022 to not think there is a error in the vue files. It also seems that I get no linting in the files as well. I see no warnings, when there should be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions