Skip to content

erunion/biome-config

Repository files navigation

@erunion/biome-config

A shared BiomeJS config.

npm Build

Configs

Config Description
@erunion/biome-config For projects that use Biome.
@erunion/biome-config/esm — addon for ESM-only repositories.
@erunion/biome-config/prettier For projects that use Prettier.

† This requires also using @erunion/biome-config/biome.

Biome

Installation

npm install --save-dev @biomejs/biome @erunion/biome-config

Usage

Create a biome.jsonc file with the following contents:

{
  "extends": [
    "@erunion/biome-config/biome"
    // "@erunion/biome-config/biome/<supplemental>"
  ]
}

By default this config does not enable auto-formatting. If you need that enabled you will have to turn it on with:

{
  "formatter": {
    "enabled": true
  }
}

Note

If you do use auto-formatting with Biome we recommend not also using @erunion/biome-config/prettier as they two may collide.

Prettier

Installation

npm install --save-dev prettier @erunion/biome-config

Usage

Add the following into your package.json:

"prettier": "@erunion/biome-config/prettier"

Note

If you use Biome and Prettier we recommend disabling Biome's auto-formatting by setting formatter.enabled to false as the two may collide.

About

A shared BiomeJS config

Topics

Resources

License

Stars

Watchers

Forks