Skip to content

parser doesn't infer ecmaVersion from env #168

Closed
@jonaskuske

Description

@jonaskuske

When using eslint with its default parser, it is enough to specify the ECMA Version as part of the env, as it also sets parserOptions.ecmaVersion. For example, "env": { "ecma2022": true } automatically sets parserOptions.ecmaVersion to 13. This is explained in the official ESLint docs: https://eslint.org/docs/latest/user-guide/configuring/language-options#specifying-environments

When using the Vue parser that behavior does not exist, you have to set parserOptions.ecmaVersion manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproNeed a minimal repository that can reproduce the problem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions