-
-
Notifications
You must be signed in to change notification settings - Fork 48
Wrong type checking for reactive statments. #242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here's my eslint config
|
Not enough. Please always provide a repository. |
@ota-meshi ok, i used part of my lib to showcase the error. https://github.com/mpiorowski/svelte-init/blob/test/src/routes/test.svelte |
@ota-meshi another error is when using reactive assigment to variables, then eslint doesn't seems to see the value It's working when i remove the ractive assigment: |
Please always provide a repository and file to reproduce the issue. |
@ota-meshi i added another example in the same file. You can check this error by switching "$:" to "let". And thanks for the worka and fast response :) https://github.com/mpiorowski/svelte-init/blob/test/src/routes/test.svelte |
The second issue seems to be the same issue as the issue opened in the parser repo. Please track the following issue. |
Before You File a Bug Report Please Confirm You Have Done The Following...
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:
And ofc if i delete the ? i got another error:
Additional comments
No response
The text was updated successfully, but these errors were encountered: