Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": { "ignoreUnknown": false },
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 120,
"attributePosition": "auto",
"bracketSameLine": false,
"bracketSpacing": true,
Comment on lines +12 to +14
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial

Minor redundancy: formatter settings repeated across sections.

bracketSameLine, bracketSpacing, and attributePosition appear in both general formatter and JavaScript-specific sections. While functionally correct (nested settings override), consolidating to the JavaScript section would reduce verbosity.

 "formatter": {
   "enabled": true,
   "formatWithErrors": false,
   "indentStyle": "space",
   "indentWidth": 2,
   "lineEnding": "lf",
   "lineWidth": 120,
-  "attributePosition": "auto",
-  "bracketSameLine": false,
-  "bracketSpacing": true,
   "expand": "auto",
   "useEditorconfig": true,
   "includes": ["**", "!./coverage", "!./dist", "!**/package.json"]
 },
 "javascript": {
   "formatter": {
     "jsxQuoteStyle": "single",
     "quoteProperties": "preserve",
     "trailingCommas": "es5",
     "semicolons": "asNeeded",
     "arrowParentheses": "asNeeded",
     "bracketSameLine": false,
     "quoteStyle": "single",
     "attributePosition": "auto",
     "bracketSpacing": true
   }
 }

Also applies to: 28-29

🤖 Prompt for AI Agents
In biome.json around lines 12-14 (and similarly lines 28-29), you have
duplicated formatter settings (attributePosition, bracketSameLine,
bracketSpacing) in both general and JavaScript-specific sections; remove these
keys from the general section and keep them only in the JavaScript-specific
section so the JS overrides remain intact and the file is less verbose, ensuring
no other references rely on the general keys before deleting.

"expand": "auto",
"useEditorconfig": true,
"includes": ["**", "!./coverage", "!./dist", "!**/package.json"]
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "single",
"quoteProperties": "preserve",
"trailingCommas": "es5",
"semicolons": "asNeeded",
"arrowParentheses": "asNeeded",
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto",
"bracketSpacing": true
}
},
"html": { "formatter": { "selfCloseVoidElements": "always" } }
}