Skip to content

Wrong type checking for reactive statments. #242

Closed
sveltejs/svelte-eslint-parser
#204
@mpiorowski

Description

@mpiorowski

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.23.0

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

2.7.0

What did you do?

Trying to write reactive statment with strcit typescript rule applied.

What did you expect to happen?

Working eslint code.

What actually happened?

Wrong typescript eslint.

Link to Minimal Reproducible Example

Hope photos will be enought:

image

image

And ofc if i delete the ? i got another error:

image

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem rightneeds reproNeed a 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