Format
Biome - Fast formatter and linter for JavaScript and TypeScript.
Usage
bun run formatnpm run formatyarn formatbunx biome check --write src scripts package.jsonWhat it does
Configuration
Default configuration
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"semicolons": "asNeeded"
}
}
}Formatting options
Option
Default
Description
Linter rules
Rule
Setting
Reason
Customization
Changing formatting style
Adding semicolons everywhere
Using single quotes
Ignoring files
Enabling stricter rules
IDE Integration
VS Code
Other editors
Running checks without fixing
CI Integration
More information
Last updated