@goatlab/biome
v0.1.1
Published
Shared Biome configuration for GoatLab projects
Readme
@goatlab/biome
Shared Biome configuration for GoatLab projects.
Installation
pnpm add -D @goatlab/biome @biomejs/biomeUsage
Create a biome.json file in your project root:
{
"$schema": "https://biomejs.dev/schemas/2.1.3/schema.json",
"extends": ["../../packages/biome/biome.json"]
}Or if using the published package:
{
"$schema": "https://biomejs.dev/schemas/2.1.3/schema.json",
"extends": ["node_modules/@goatlab/biome/biome.json"]
}Scripts
Add these scripts to your package.json:
{
"scripts": {
"format": "biome format --write .",
"lint": "biome lint --write .",
"check": "biome check --write ."
}
}VS Code Integration
Install the Biome VS Code extension and add this to your workspace settings:
{
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
}Rule Mappings from ESLint
This configuration includes equivalent rules for the following ESLint/Prettier settings:
Formatting (from Prettier)
printWidth: 80→lineWidth: 80trailingComma: "none"→trailingCommas: "none"singleQuote: true→quoteStyle: "single"semi: false→semicolons: "asNeeded"tabWidth: 2→indentWidth: 2arrowParens: "avoid"→arrowParentheses: "asNeeded"
Linting (from ESLint)
- TypeScript naming conventions
- Import organization
- Unused imports/variables removal
- Complexity limits (max 30)
- Various code quality rules
See the biome.json file for the complete configuration.
