Détail du package

@alexanderliu/biome-config-linter

alexanderliu3281.0.2

Biome config with strict linter rules.

readme

@alexanderliu/biome-config-linter

Biome config with strict linter rules.

Usage

Install Packages

Check package.json package of this package to determine the correct biome version.

pnpm add -D -E @alexanderliu/biome-config-linter @biomejs/biome@<version>

Biome Config

biome.json:

{
    "extends": ["@alexanderliu/biome-config-linter/biome"]
}

package.json Scripts

{
    "format:check": "biome format .",
    "format:write": "biome format --write .",
    "lint:check": "biome lint .",
    "lint:sort": "biome check --formatter-enabled=false --linter-enabled=false --organize-imports-enabled=true --write .",
    "lint:write": "biome lint --write ."
}

(Optional) package.json Sort

Biome does not sort package.json keys. Replace the follow scripts to use the sort-package-json package for this functionality.

Install sort-package-json

pnpm add -D -E sort-package-json

Replace Scripts

{
    "format:check": "pnpm format:package-json --check && biome format .",
    "format:package-json": "sort-package-json 'package.json' 'packages/*/package.json'",
    "format:write": "pnpm format:package-json && biome format --write .",
}