forked from rust-ui/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbiome.json
More file actions
76 lines (76 loc) · 1.93 KB
/
biome.json
File metadata and controls
76 lines (76 loc) · 1.93 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"$schema": "https://biomejs.dev/schemas/2.2.0/schema.json",
"assist": { "actions": { "source": { "organizeImports": "off" } } },
"files": {
"includes": [
"**/*.js",
"!**/target",
"!**/node_modules",
"!**/crates",
"!**/server",
"!**/frontend",
"!**/public/cdn",
"!**/*.css",
"!**/*.rs"
]
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedVariables": "warn",
"useExhaustiveDependencies": "warn",
"noInvalidUseBeforeDeclaration": "warn",
"useJsxKeyInIterable": "warn",
"noInnerDeclarations": "warn"
},
"a11y": {
"useValidAnchor": "off",
"noSvgWithoutTitle": "off",
"useButtonType": "off",
"noNoninteractiveTabindex": "off",
"useMediaCaption": "warn",
"noRedundantAlt": "error",
"useKeyWithClickEvents": "warn",
"noAutofocus": "warn"
},
"suspicious": {
"noExplicitAny": "warn",
"noArrayIndexKey": "off",
"noAssignInExpressions": "off",
"noImplicitAnyLet": "off",
"noSuspiciousSemicolonInJsx": "warn",
"noGlobalIsNan": "warn",
"noVar": "warn"
},
"style": {
"noUselessElse": "warn",
"noNonNullAssertion": "warn",
"noUnusedTemplateLiteral": "error",
"useSingleVarDeclarator": "warn",
"useConst": "warn",
"noParameterAssign": "warn",
"useNumberNamespace": "warn"
},
"security": {
"noDangerouslySetInnerHtml": "off"
},
"complexity": {
"noBannedTypes": "off",
"noForEach": "off",
"useLiteralKeys": "warn",
"noCommaOperator": "warn"
},
"performance": {
"noAccumulatingSpread": "off"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"lineWidth": 90,
"indentWidth": 2
}
}