Skip to content

#each block with single line comment between function call and a component inside it causes eslint to hang #330

Closed
@DetachHead

Description

@DetachHead

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

  • 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.30.0

What version of eslint-plugin-svelte are you using?

2.14.1

What did you do?

Configuration

n/a, see playground link

{#each a(
//
a) as a}
<A/>{/each}

What did you expect to happen?

eslint finishes checking the code in a timely manner

What actually happened?

eslint hangs

Link to GitHub Repo with Minimal Reproducible Example

https://ota-meshi.github.io/eslint-plugin-svelte/playground/#eJyrVkrOT0lVslKqVk5NTM5QSNSIydPXj8lL1FRILFZIrI3Js3HUt6vWB0nWKtUCAGG/Dwg=

Additional comments

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