@erunion/biome-config
v1.0.1
Published
A shared BiomeJS config
Downloads
206
Readme
@erunion/biome-config
A shared BiomeJS config.
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-configUsage
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/prettieras they two may collide.
Prettier
Installation
npm install --save-dev prettier @erunion/biome-configUsage
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.enabledtofalseas the two may collide.
