Skip to content

/**/ comments don't work in template code #329

@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
{foo(/**/)}

What did you expect to happen?

no error, as this is valid javascript

What actually happened?

[2:21]: Parsing error: Unexpected token ;

Link to GitHub Repo with Minimal Reproducible Example

https://ota-meshi.github.io/eslint-plugin-svelte/playground/#eJyrVkrOT0lVslKqTsvP19DX0tLXrFWqBQBPdQaV

Additional comments

related: sveltejs/svelte#7456

however that issue is only for comments outside of the expression (ie. {foo() /**/}). comments inside the expression like {foo(/**/)} work correctly in the svelte compiler

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