1.0.0 • Published 9 months ago
@c14l/biome-config v1.0.0
biome minimalist config
a minimalist Biome configuration i use in my projects with rather strict linting and formatting rules, as an alternative to ESLint and Prettier.
installation
# using bun
bun add --dev @c14l/biome-config @biomejs/biomeusage
after installation, create a biome.json file in your project root and extend this configuration:
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": ["@c14l/biome-config"]
}you can also override specific settings:
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": ["@c14l/biome-config"],
"formatter": {
"indentStyle": "tab"
}
}editor integration
VS Code / Cursor
for the best experience in VS Code or Cursor, add these settings to your settings.json:
{
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[jsonc]": {
"editor.defaultFormatter": "biomejs.biome"
},
"typescript.tsdk": "node_modules/typescript/lib"
}make sure to install the Biome extension for VS Code.
you can also enable format on save with:
{
"editor.formatOnSave": true
}1.0.0
9 months ago