Skip to content

Instantly share code, notes, and snippets.

@mjanssen
Last active November 23, 2024 23:25
Show Gist options
  • Save mjanssen/79c489a5f37829e347d856352232e5fd to your computer and use it in GitHub Desktop.
Save mjanssen/79c489a5f37829e347d856352232e5fd to your computer and use it in GitHub Desktop.
Sensible Biomejs config
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true,
"lineWidth": 80,
"lineEnding": "lf"
},
"linter": {
"rules": {
"correctness": {
"recommended": true,
"noUnusedImports": "error",
"useHookAtTopLevel": "warn"
}
}
},
"javascript": {
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "single"
},
"linter": {
"enabled": true
}
},
"json": {
"formatter": {
"indentStyle": "space",
"indentWidth": 2
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment