Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typescript-svelte-plugin

Package Overview
Dependencies
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-svelte-plugin

A TypeScript Plugin providing Svelte intellisense

  • 0.3.37
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
decreased by-28.13%
Maintainers
3
Weekly downloads
 
Created
Source

A TypeScript plugin for Svelte intellisense

This plugin provides intellisense for interacting with Svelte files. It is in a very early stage, so expect bugs. So far the plugin supports

  • Rename
  • Find Usages
  • Go To Definition
  • Diagnostics

Note that these features are only available within TS/JS files. Intellisense within Svelte files is provided by the svelte-language-server.

Usage

The plugin comes packaged with the Svelte for VS Code extension. If you are using that one, you don't need to add it manually.

Adding it manually:

npm install --save-dev typescript-svelte-plugin

Then add it to your tsconfig.json or jsconfig.json:

{
    "compilerOptions": {
        ...
        "plugins": [{
            "name": "typescript-svelte-plugin",
            // the following options can be set additionally; they are optional; their default values are listed here
            "enabled": true, // enables this plugin
            "assumeIsSvelteProject": false // if true, skip detection and always assume it's a Svelte project
        }]
    }
}

Limitations

Changes to Svelte files are only recognized after they are saved to disk.

Credits

  • pushkine for his initial POC and the inspiration/discussion that stemmed from it

Keywords

FAQs

Package last updated on 12 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc