Tooling@accelint/biome-config
Overview
Shared Biome configuration presets for linting, formatting, and code analysis
Installation
pnpm add -D @accelint/biome-confignpm install --save-dev @accelint/biome-configyarn add -D @accelint/biome-configUsage
Complete Configuration
Import all configuration presets in your biome.json:
{
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
"extends": [
"@accelint/biome-config/linter",
"@accelint/biome-config/formatter",
"@accelint/biome-config/analyzer"
]
}Selective Import
Import only the presets you need:
{
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
"extends": ["@accelint/biome-config/linter"]
}Available Configurations
Linter
Strict linting rules with cognitive complexity limits, naming conventions, and React hooks enforcement.
See Linter Configuration for details.
Formatter
Consistent code formatting settings including indentation, line width, semicolons, and quote styles.
See Formatter Configuration for details.
Analyzer
Code analysis settings for import organization and better maintainability.
See Analyzer Configuration for details.
Customization
Override any rule in your project's biome.json:
{
"extends": ["@accelint/biome-config/linter"],
"linter": {
"rules": {
"complexity": {
"noExcessiveCognitiveComplexity": {
"options": {
"maxAllowedComplexity": 20
}
}
}
}
}
}Scripts
Add these scripts to your package.json:
{
"scripts": {
"lint": "biome lint .",
"lint:fix": "biome lint --write .",
"format": "biome format --write .",
"format:check": "biome format .",
"check": "biome check --write ."
}
}Editor Integration
VSCode
Install the Biome VSCode extension:
{
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit"
}
}Other Editors
See Biome editor integrations for setup instructions.
CI/CD Integration
GitHub Actions
- name: Check code quality
run: pnpm biome check .GitLab CI
biome:
script:
- pnpm biome check .