A shared BiomeJS config.
| 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.
npm install --save-dev @biomejs/biome @erunion/biome-configCreate 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.
npm install --save-dev prettier @erunion/biome-configAdd 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.