@dnbhq/biome-config
v0.2.1
Published
Shared Biome configuration for DNBHQ projects.
Readme
@dnbhq/biome-config
Shared Biome configuration for DNBHQ projects.
Installation
npm install --save-dev @dnbhq/biome-config @biomejs/biomeUsage
Create or update biome.json in the consuming project:
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["./node_modules/@dnbhq/biome-config/config.json"]
}Available config
Strict DNBHQ baseline
The package exports one shared Biome configuration:
{
"extends": ["./node_modules/@dnbhq/biome-config/config.json"]
}It enables formatting, import organisation, VCS integration, and a strict rule set for performance, complexity, correctness, and suspicious-code checks.
Design notes
The configuration data was migrated from packages/biome-config in davidsneighbour/configurations.
The shared config intentionally keeps project-local decisions in the consuming project. Consumers can override values after the shared config in their local biome.json.
Biome applies configs from the extends list first, then applies local options from the consuming biome.json, so local project settings remain the most specific settings.
Release
Dry run:
npm run release:dryRelease:
npm run releaseReleases are handled by release-it and @release-it/conventional-changelog.
Commit messages should follow Conventional Commits.
Publishing is handled by the Publish package GitHub Actions workflow when a v* tag is pushed.
Notes
- The consuming project should install
@biomejs/biomedirectly so editor integrations, CLI usage, and lockfiles remain project-local. - The package includes only
config.json,README.md,CHANGELOG.md, andLICENSEin the npm package. - Use
npm run testbefore releasing. The test command currently runsbiome checkagainst this repository.
