forked from joe-bell/cva
-
Notifications
You must be signed in to change notification settings - Fork 1
/
biome.json
201 lines (201 loc) · 6.9 KB
/
biome.json
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
{
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"organizeImports": { "enabled": true },
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"noVar": "error",
"useWhile": "error",
"useForOf": "warn",
"useTemplate": "error",
"noArguments": "warn",
"useImportType": "error",
"noUselessElse": "error",
"useExportType": "error",
"noNegationElse": "warn",
"noCommaOperator": "error",
"noDefaultExport": "off",
"noShoutyConstants": "warn",
"noImplicitBoolean": "error",
"noInferrableTypes": "warn",
"noParameterAssign": "error",
"useFragmentSyntax": "error",
"noNonNullAssertion": "info",
"useBlockStatements": "error",
"useCollapsedElseIf": "warn",
"useShorthandAssign": "info",
"useNumericLiterals": "error",
"useNumberNamespace": "error",
"noRestrictedGlobals": "warn",
"useAsConstAssertion": "warn",
"useNodeAssertStrict": "error",
"useEnumInitializers": "error",
"useNamingConvention": "error",
"useShorthandArrayType": "error",
"useLiteralEnumMembers": "error",
"useSelfClosingElements": "info",
"useSingleVarDeclarator": "error",
"useSingleCaseStatement": "error",
"useConsistentArrayType": "error",
"noUnusedTemplateLiteral": "warn",
"useFilenamingConvention": "info",
"useDefaultParameterLast": "error",
"useNodejsImportProtocol": "error",
"useShorthandFunctionType": "error",
"useExponentiationOperator": "error"
},
"complexity": {
"noVoid": "error",
"noWith": "error",
"noForEach": "error",
"useFlatMap": "error",
"noBannedTypes": "error",
"useLiteralKeys": "error",
"noThisInStatic": "error",
"noUselessCatch": "error",
"noUselessLabel": "error",
"noUselessRename": "error",
"noUselessTernary": "error",
"useArrowFunction": "error",
"useOptionalChain": "error",
"useRegexLiterals": "error",
"noStaticOnlyClass": "error",
"noUselessThisAlias": "error",
"noExtraBooleanCast": "error",
"noUselessFragments": "error",
"useSimpleNumberKeys": "error",
"noUselessSwitchCase": "error",
"noUselessConstructor": "error",
"noUselessEmptyExport": "error",
"noEmptyTypeParameters": "error",
"noUselessTypeConstraint": "error",
"noExcessiveNestedTestSuites": "error",
"noUselessLoneBlockStatements": "error",
"useSimplifiedLogicExpression": "error",
"noMultipleSpacesInRegularExpressionLiterals": "error",
"noExcessiveCognitiveComplexity": { "level": "warn", "options": { "maxAllowedComplexity": 10 } }
},
"suspicious": {
"useAwait": "error",
"useIsArray": "error",
"noDebugger": "warn",
"noRedeclare": "error",
"noConstEnum": "warn",
"noConsoleLog": "warn",
"noGlobalIsNan": "error",
"noSelfCompare": "error",
"noSparseArray": "error",
"noExplicitAny": "off",
"noCatchAssign": "error",
"noClassAssign": "error",
"noCommentText": "error",
"noGlobalAssign": "error",
"noImportAssign": "error",
"noThenProperty": "error",
"useValidTypeof": "error",
"noDoubleEquals": "error",
"useGetterReturn": "error",
"noExportsInTest": "error",
"noArrayIndexKey": "error",
"noDuplicateCase": "error",
"noFunctionAssign": "error",
"noUnsafeNegation": "error",
"noImplicitAnyLet": "error",
"noEmptyInterface": "warn",
"noCompareNegZero": "error",
"noConfusingLabels": "error",
"noPrototypeBuiltins": "error",
"useNamespaceKeyword": "error",
"noConfusingVoidType": "error",
"noDuplicateJsxProps": "error",
"noRedundantUseStrict": "error",
"noDuplicateParameters": "error",
"noDuplicateObjectKeys": "error",
"noAssignInExpressions": "error",
"noEmptyBlockStatements": "error",
"noAsyncPromiseExecutor": "error",
"noShadowRestrictedNames": "error",
"noExtraNonNullAssertion": "error",
"noDuplicateClassMembers": "error",
"noMisleadingInstantiator": "error",
"noFallthroughSwitchClause": "error",
"noSuspiciousSemicolonInJsx": "error",
"noUnsafeDeclarationMerging": "error",
"useDefaultSwitchClauseLast": "error",
"noMisrefactoredShorthandAssign": "error",
"noApproximativeNumericConstant": "error"
},
"correctness": {
"useIsNan": "error",
"useYield": "error",
"noNewSymbol": "error",
"noSelfAssign": "error",
"noConstAssign": "error",
"noUnreachable": "warn",
"noChildrenProp": "error",
"noSetterReturn": "error",
"noEmptyPattern": "error",
"noUnusedLabels": "error",
"noPrecisionLoss": "error",
"noUnsafeFinally": "error",
"noUnusedImports": "error",
"useArrayLiterals": "error",
"noVoidTypeReturn": "error",
"useHookAtTopLevel": "error",
"noUnusedVariables": "error",
"noFlatMapIdentity": "error",
"noUnreachableSuper": "error",
"useJsxKeyInIterable": "warn",
"noConstantCondition": "error",
"noConstructorReturn": "error",
"noGlobalObjectCalls": "error",
"noInnerDeclarations": "error",
"noRenderReturnValue": "error",
"noInvalidNewBuiltin": "error",
"useValidForDirection": "warn",
"noStringCaseMismatch": "error",
"noSwitchDeclarations": "error",
"noUnnecessaryContinue": "error",
"noNonoctalDecimalEscape": "error",
"noUnsafeOptionalChaining": "error",
"useExhaustiveDependencies": "warn",
"noInvalidConstructorSuper": "error",
"noConstantMathMinMaxClamp": "error",
"noVoidElementsWithChildren": "error",
"noUnusedPrivateClassMembers": "error",
"noEmptyCharacterClassInRegex": "error",
"noInvalidUseBeforeDeclaration": "warn"
},
"security": {
"noGlobalEval": "error"
},
"nursery": {
"useThrowNewError": "error",
"useThrowOnlyError": "error"
},
"performance": {
"noAccumulatingSpread": "error",
"noBarrelFile": "error",
"noDelete": "error",
"noReExportAll": "error"
}
},
"ignore": ["dist", "build", "node_modules"]
},
"formatter": {
"lineWidth": 192,
"indentStyle": "space",
"indentWidth": 2,
"ignore": ["dist", "build", "node_modules"],
"attributePosition": "multiline"
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"trailingCommas": "es5",
"arrowParentheses": "always"
}
}
}