forked from Al-does/metta
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbiome.jsonc
More file actions
48 lines (48 loc) · 1.33 KB
/
biome.jsonc
File metadata and controls
48 lines (48 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"files": {
"ignore": ["node_modules", "dist", "build", "*.min.js", "**/node_modules", "**/dist", "**/build"]
},
"formatter": {
"lineWidth": 120, // Wider for modern screens and JSX
"indentWidth": 2,
"indentStyle": "space"
},
"linter": {
"rules": {
"recommended": true,
// Encourage modern patterns
"complexity": {
"noForEach": "warn", // Prefer for...of or array methods
"useFlatMap": "warn"
},
"style": {
"noInferrableTypes": "warn", // Avoid redundant type annotations
"noNamespace": "warn", // Prefer ES modules
"useAsConstAssertion": "warn",
"useBlockStatements": "warn",
"useConsistentArrayType": {
"level": "warn",
"options": {
"syntax": "generic" // Array<T> instead of T[]
}
},
"useForOf": "warn",
"useShorthandFunctionType": "warn"
},
"suspicious": {
"noExplicitAny": "warn", // Encourage proper typing
"useAwait": "warn" // Catch floating promises
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "double",
"trailingCommas": "es5",
"semicolons": "asNeeded",
"arrowParentheses": "always"
}
}
}