jamesbirtles / svelte-vscode

Svelte language support for VS Code
https://marketplace.visualstudio.com/items?itemName=JamesBirtles.svelte-vscode
MIT License
209 stars 23 forks source link

Typescript warning in *.svelte with javascript #104

Closed pipex closed 4 years ago

pipex commented 4 years ago

Hi,

I'm getting what appear to be typescript warnings inside plain svelte files.

In the first image, it warns about the variable using 'any' type, even when no typescript is configured.

In the second, it does not recognize variables inside the <script> portion being used in the HTML part of the file and warns about the variable never being used.

If I disable typescript diagnostics using "svelte.plugin.typescript.diagnostics.enable": false, I get the messages to dissappear, but I lose other checks (e.g. on actually never used vars).

Also, using of the svelte plugin seems to disable the eslint plugin, which could perform additional checks.

I'm using version 0.9.3 of the plugin and the latest VSCode. I can also provide a sample repo if it helps.

Cheers Felipe

any-type never-used