Elysia Tools
Navigation
Developer Tools
Biome 2.3.8 configuration examples
Formatting preferences; Unused-variable severity; JSON override.
Samples
Entries inside this sample collection
Formatting preferences
Parse card1.json and inspect formatter plus javascript.formatter.
Tags
offline, synthetic, verified-input
{
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "always"
}
}
}
Unused-variable severity
Inspect card2.json linter settings.
Tags
offline, synthetic, verified-input
{
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedVariables": "error"
}
}
}
}
JSON override
Read card3.json and compare root and override indentation.
Tags
offline, synthetic, verified-input
{
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
},
"overrides": [
{
"includes": [
"**/*.json"
],
"formatter": {
"indentWidth": 4
}
}
]
}
Tools
Tools frequently paired with this sample
Related
Related sample collections
Related