Skip to main content
Works with
JSR Score
52%
Published
2 months ago (1.0.1)

@javinyx/biome-config

NPM Version NPM dev or peer Dependency Version

Usage

Installation

npm|yarn|pnpm|bun add -D @biomejs/biome @javinyx/biome-config

Add the extends array to your project's biome.json file:

// <project-root>/biome.json
{
    "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
    "extends": "@javinyx/biome-config",
    // ...
}

Add scripts to your package.json if you haven't already:

// <project-root>/package.json
{
    //...
    "scripts": {
        "lint": "biome lint .",
        "lint:fix": "biome lint . --apply"
    }
    // ...
}

Visual Studio Code Setup

  1. Install the BiomeJS Visual Studio Code extension if you haven't already.

  2. Add the following settings to your project's .vscode/settings.json, or create them anew:

// <project-root>/.vscode/settings.json
{
    // ...
    "[javascript][javascriptreact][typescript][typescriptreact][json][jsonc]": {
      "editor.defaultFormatter": "biomejs.biome"
    },
    "editor.formatOnSave": true,
    "editor.codeActionsOnSave": {
        "quickfix.biome": "explicit",
        "source.organizeImports.biome": "explicit"
    }
    // ...
}

Add Package

deno add @javinyx/biome-config

Import symbol

import * as mod from "@javinyx/biome-config";

Add Package

npx jsr add @javinyx/biome-config

Import symbol

import * as mod from "@javinyx/biome-config";

Add Package

yarn dlx jsr add @javinyx/biome-config

Import symbol

import * as mod from "@javinyx/biome-config";

Add Package

pnpm dlx jsr add @javinyx/biome-config

Import symbol

import * as mod from "@javinyx/biome-config";

Add Package

bunx jsr add @javinyx/biome-config

Import symbol

import * as mod from "@javinyx/biome-config";