My Biome JS config
~0 min read.
Simple copy-paste configuration for biomejs.
- Uses your
.gitignore
to avoid formatting unuseful files and directories. - Up to 100 chars per line for modern monitors.
- Single quotes, no trailing commas, semicolons and spaces instead of tabs.
Firstly, install biome and this configuration:
pnpm i -D @arthurfiorette/biomejs-config @biomejs/biome
Then add the following to your biome.json
:
{
"$schema": "https://biomejs.dev/schemas/latest/schema.json",
"extends": ["@arthurfiorette/biomejs-config"]
}
And finally, add the following scripts to your package.json
to easily format and lint your code:
{
"scripts": {
"format": "biome format --write .",
"lint": "biome check .",
"lint:ci": "biome ci .",
"lint:fix": "biome check --write --unsafe ."
}
}