Skip to content

<script setup lang="ts" generic=" multiline generic definition "> cause ESLint Parsing error, but can correctly build. #66

Closed as not planned
@pronitsateli731

Description

@pronitsateli731

This code cause error Parsing error: ';' expected. at TBar comment row.
It is not occur not only when comment row exists, but also when generic definition has line breaks.

<script setup lang="ts" generic="
    // comment of TFoo
    TFoo extends Record<string, any>,
    // comment of TBar
    TBar
">
  ...
</script>

I write a component which has 6 generics and each definition lasting about 50 characters, so generic definition has 13 lines.
Vue.js can parse this and can built and move correctly, but only ESLint displays error.

ESLint seems not responsible for Vue, so I submit this bug? to here.
If more suitable place exsits, I'm please to tell me that and sorry for your bother.

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