Skip to content

14.0.0 Parsing error: Invalid ecmaVersion on components with no <script> tag #87

Closed
@chrisnruud

Description

@chrisnruud

Vue components doesn't need script tags, eslint fails when trying to parse components with no script tag with

npx eslint src/components/FailingBecauseNoScript.vue

/Users/repositories/eslint9test/src/components/FailingBecauseNoScript.vue
  0:0  error  Parsing error: Invalid ecmaVersion

✖ 1 problem (1 error, 0 warnings)

reproduction available in https://github.com/chrisnruud/eslint9test

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