Skip to content

Commit 5300175

Browse files
ericyangpanclaude
andcommitted
chore(config): update biome and vscode configuration
- Enable biome formatter for JSON files in VS Code - Add formatWithErrors, performance, and complexity rules to biome config - Configure stricter linting with noUndeclaredVariables as error 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a1db58c commit 5300175

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"editor.defaultFormatter": "biomejs.biome"
1818
},
1919
"[json]": {
20-
"editor.defaultFormatter": "vscode.json-language-features"
20+
"editor.defaultFormatter": "biomejs.biome"
2121
},
2222
"[jsonc]": {
2323
"editor.defaultFormatter": "biomejs.biome"

biome.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"formatter": {
1313
"enabled": true,
14+
"formatWithErrors": false,
1415
"indentStyle": "space",
1516
"indentWidth": 2,
1617
"lineWidth": 100
@@ -34,7 +35,16 @@
3435
},
3536
"correctness": {
3637
"useExhaustiveDependencies": "warn",
37-
"noUnusedVariables": "warn"
38+
"noUnusedVariables": "warn",
39+
"noUndeclaredVariables": "error"
40+
},
41+
"performance": {
42+
"noDelete": "warn",
43+
"noAccumulatingSpread": "warn"
44+
},
45+
"complexity": {
46+
"noBannedTypes": "warn",
47+
"noUselessFragments": "warn"
3848
}
3949
}
4050
},

0 commit comments

Comments
 (0)