Skip to content

Svelte TypeScript reported as JavaScript #1264

@guenhter

Description

@guenhter

Hi,

first of all I have to thank you for this repo. I love it. It is super fast and accurate. Great job!


Currently the script part of Svelte files is always reported as JavaScript:

Svelte                354        36499        33254          738         2507
 |- CSS                 39          641          584            9           48
 |- JavaScript         352        25046        20067          609         4370
 (Total)                          62186        53905         1356         6925

Even though the script can be either JavaScript or TypeScript, depending on the defined language (https://svelte.dev/docs/svelte/svelte-files#script):

<script>
	// JavaScript goes here
</script>

// or

<script lang="ts">
	// TypeScript goes here
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions