@contractspec/biome-config
v3.8.7
Published
Biome presets, Grit plugins, and policy manifest for ContractSpec repositories.
Maintainers
Readme
@contractspec/biome-config
Website: https://contractspec.io
Typed ContractSpec lint-policy package that generates Biome presets, Grit plugins, and AI-facing rule summaries.
What It Provides
- Acts as the source of truth for repository and consumer Biome policy artifacts.
- Publishes generated presets, Grit plugins, and AI summaries alongside the typed manifest and generation helpers.
- Requires artifact synchronization whenever the typed policy manifest changes so committed outputs stay aligned.
- Related ContractSpec packages include
@contractspec/tool.bun,@contractspec/tool.typescript.
Installation
npm install @contractspec/biome-config
or
bun add @contractspec/biome-config
Usage
Import the root entrypoint from @contractspec/biome-config, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/policies.tsdefines the typed policy manifest.src/generate.tsandsrc/sync.tsgenerate and synchronize derived artifacts.src/types.tsandsrc/index.tsexpose the public API for generation and policy consumption.presets/,plugins/, andai/contain committed generated artifacts consumed by downstream tools.
Public Entry Points
- Exports the root library API and ships generated presets, Grit plugins, and AI-facing summaries as committed package artifacts.
- Export
.resolves through./src/index.ts.
Local Commands
bun run dev— contractspec-bun-build devbun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run test— bun testbun run lint— bun run lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsc --noEmitbun run sync:artifacts— bun src/sync.tsbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rimraf dist .turbobun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run prebuild— bun run sync:artifacts && contractspec-bun-build prebuild
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
Notes
- The committed
presets/,plugins/, andai/artifacts are intended for downstream scaffolding without code execution.
