New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

@canonical/biome-config-svelte

Package Overview
Dependencies
Maintainers
25
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@canonical/biome-config-svelte

Canonical's Biome configuration for Svelte projects (extends @canonical/biome-config)

latest
Source
npmnpm
Version
0.14.0
Version published
Weekly downloads
228
75.38%
Maintainers
25
Weekly downloads
 
Created
Source

@canonical/biome-config-svelte

This package extends @canonical/biome-config with Svelte-specific overrides for Biome.

Use this in Svelte projects so that .svelte files get appropriate lint/format settings (e.g. relaxed rules until Biome’s Svelte support improves).

Important note

Watch for future Biome releases with improved Svelte support and reconsider these rules when appropriate. See Biome issue #7928 (almost fixed 14/15 tasks).

Install

  • Install Biome: bun add -d @biomejs/biome
  • Install this config: bun add -d @canonical/biome-config-svelte

Consume

Create or update biome.json in the root of your project and extend this configuration (you do not need to extend @canonical/biome-config separately).

{
  "$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
  "extends": ["@canonical/biome-config-svelte"],
  "files": {
    "includes": ["src", "*.config.ts", "*.config.js"]
  }
}

Run biome commands as usual. You get the base Canonical Biome config plus Svelte overrides.

Svelte overrides

This config adds an override for **/*.svelte that:

  • Turns off certain style/correctness rules that are not yet reliable for Svelte (see Biome issue #7928).
  • Enables html.formatter.indentScriptAndStyle for .svelte files.

When Biome’s Svelte support improves, these relaxations may be reduced or removed.

FAQs

Package last updated on 16 Feb 2026

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