Skip to content

Parsing error in VS 2022 #223

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
4 tasks done
johnwc opened this issue Feb 23, 2024 · 0 comments
Open
4 tasks done

Parsing error in VS 2022 #223

johnwc opened this issue Feb 23, 2024 · 0 comments

Comments

@johnwc
Copy link

johnwc commented Feb 23, 2024

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant