sveltejs / eslint-plugin-svelte

ESLint plugin for Svelte using AST
https://sveltejs.github.io/eslint-plugin-svelte/
MIT License
276 stars 29 forks source link

fix: false positives for import vars with TS in `svelte/valid-compile` #790

Closed ota-meshi closed 2 weeks ago

ota-meshi commented 2 weeks ago

close #652

This PR fixes the issue mentioned in the comments below.

https://github.com/sveltejs/eslint-plugin-svelte/issues/652#issuecomment-2087008855

In the code posted at the top of the thread the rule seems to work correctly, and correctly shows the svelte compiler warnings.

changeset-bot[bot] commented 2 weeks ago

🦋 Changeset detected

Latest commit: 1ea6d9327739bb876c0b3ee473e962f59b023dee

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------------- | ----- | | eslint-plugin-svelte | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR