Socket
Book a DemoInstallSign in
Socket

@canonical/biome-config

Package Overview
Dependencies
Maintainers
22
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@canonical/biome-config

This is a [Biome](https://biomejs.dev/) configuration that provides a set of default configurations for Biome projects.

latest
Source
npmnpm
Version
0.10.0-experimental.4
Version published
Maintainers
22
Created
Source

@canonical/biome-config

This is a Biome configuration that provides a set of default configurations for Biome projects.

Install

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

Consume

Create biome.json in the root of your project and extend this configuration.

{
  "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
  "extends": [
    "@canonical/biome-config"
  ],
  "files": {
    "include": [
      "src",
      "*.json"
    ]
  }
}

Run biome commands as usual. The base configuration will be applied.

Example package.json scripts are provided below.

{
  "scripts": {
    "check": "biome check",
    "format": "biome format",
    "lint": "biome lint"
  }
}

Configuration

This configuration enables the following behavior:

  • Formatting Rules
    • Two-space indentation
    • Double-quote strings
  • Organized imports
  • Apply Biome's recommended linting rules by default
  • Disable version control integration: no interaction with Git
    • Ignores .gitignore: Explicitly includes all files unless they are ignored manually or other files are included explicitly.
    • Ignores Git add status: No need to stage files before running biome check or biome format.
  • Ignores checking all files in node_modules and dist directories. Please note that if you specify your own ignored files using files.ignore in biome.json, you will override this behavior.

Caveats

Monorepos

Biome does not yet fully support monorepos. Biome and IDE plugins that use it may not work as expected if you are working in a monorepo. As a work-around, Biome suggests including a biome.json at the root of a monorepository, and using overrides to specify any exceptions for sub-packages.

Language support

Biome is still in development and may not support all languages or features. We recommend checking the Biome supported languages list to ensure that your project is supported.

FAQs

Package last updated on 25 Sep 2025

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