New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@canonical/biome-config

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@canonical/biome-config

  • 0.9.0-experimental.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@canonical/biome-config

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

Install

  1. Install Biome: bun add -d @biomejs/biome
  2. 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.2/schema.json",
  "extends": ["@canonical/biome-config"]
}

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

Example package.json scripts are provided below.

{
  "scripts": {
    // implicitly targets all files. 
    "check": "biome check",
    // explicitly targets TS files; use this for more precision if needed
    // "check:ts": "biome check --files src/**/*.ts",
    "format": "biome format",
    "lint": "biome lint"
  }
}

Configuration

This configuration enables the following behavior:

  1. Formatting Rules
    1. Two-space indentation
    2. Double-quote strings
  2. Organized imports
  3. Apply Biome's recommended linting rules by default
  4. Disable version control integration: no interaction with Git
    1. Ignores .gitignore: Explicitly includes all files unless they are ignored manually or other files are included explicitly.
    2. Ignores Git add status: No need to stage files before running biome check or biome format.

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 07 Feb 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

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