1.0.5 • Published 9 months ago

@taskylizard/biome-config v1.0.5

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

@taskylizard/biome-config

npm (scoped)

Usage

Installation

npm|yarn|pnpm|bun add -D @biomejs/biome @taskylizard/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": "@taskylizard/biome-config"
  // ...
}

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

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

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"
  }
  // ...
}

Rules

The follow rules are enabled by default for a out-of-the-box experience.

1.0.5

9 months ago

1.0.2

10 months ago

1.0.4

9 months ago

1.0.3

10 months ago

1.0.1

1 year ago

1.0.0

1 year ago