svelte-ts-plugin
v0.0.1
Published
TypeScript Language Service Plugin for Svelte
Readme
TypeScript Language Service Plugin for Svelte
This is an attempt to pass javascript from .svelte to tsserver.
I personally use it with Vim ALE to get better auto-complete. A little bit more information what I have tried to do here https://blog.ffff.lt/posts/vim-and-svelte/#typescript
Development instructions
cd svelte-ts-pluginand$ npm linkcd to_your_projectand$ npm link svelte-ts-plugin- Add plugin to jsconfig.json. E.g.:
{
"compilerOptions": {
"plugins": [{ "name": "svelte-ts-plugin" }]
}
}If you prefer (or are forced) to use yarn then replace npm to yarn in commands above.
Useful links
This information might be useful:
https://www.typescriptlang.org/docs/handbook/type-checking-javascript-files.html#supported-jsdoc
https://github.com/microsoft/TypeScript/wiki/Writing-a-Language-Service-Plugin
