0.0.1 • Published 4 years ago

svelte-ts-plugin v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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

  1. cd svelte-ts-plugin and $ npm link
  2. cd to_your_project and $ npm link svelte-ts-plugin
  3. 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: