@still-forest/biomejs-config
v2.2.0
Published
biome.js config for Still Forest
Downloads
4,323
Readme
Biome config for Still Forest
Key features
- Uses
.gitignoreto avoid formatting unuseful files and directories - Up to 120 chars per line
- Spacing: spaces instead of tabs, 2 instead of 4
- JavaScript: double quotes, trailing commas, semicolons
Usage
Firstly, install biome and this configuration:
pnpm i -D --save-exact @still-forest/biomejs-config @biomejs/biomeThen, add the following to your biome.json:
{
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
"extends": ["@still-forest/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 ."
}
}Extending this config
A downstream project's biome.json may be extended to override or add rules to this config. Example:
{
// boilerplat config above
"files": {
"includes": ["**", "!**/dist/**", "!**/*.generated.js"]
}
}For more information:
- https://biomejs.dev/guides/configure-biome/
- https://biomejs.dev/guides/big-projects/#share-the-configuration
- https://biomejs.dev/reference/configuration/
