You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I have a script block with context="module"andlang="ts", and then have two or more unused props (export let unused = "some value") within my non-module script tag, I get the error "Line numbers must be >= 1". It only occurs when there are two or more unused exports and the lang is set to "ts".
To Reproduce
Steps to reproduce the behavior:
<script context="module" lang="ts">
let someVar: undefined;
</script>
<script lang="ts">
export let unused1 = true;
export let unused2 = true;
</script>
Expected behavior
The unused-export-let warning on the two unused variables.
Screenshots
System (please complete the following information):
OS: macOS Catalina (10.15.7)
IDE: VSCode
Plugin/Package: Svelte for VSCode
The text was updated successfully, but these errors were encountered:
Now the warnings of #666 are shown, but at the wrong lines. The problem is that the module script is transpiled, too, but that is not taken into account in our mapping.
Describe the bug
When I have a script block with
context="module"
andlang="ts"
, and then have two or more unused props (export let unused = "some value"
) within my non-module script tag, I get the error "Line numbers must be >= 1". It only occurs when there are two or more unused exports and the lang is set to "ts".To Reproduce
Steps to reproduce the behavior:
Expected behavior
The
unused-export-let
warning on the two unused variables.Screenshots
System (please complete the following information):
The text was updated successfully, but these errors were encountered: