-
Notifications
You must be signed in to change notification settings - Fork 0
/
biome.json
157 lines (157 loc) · 4.75 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
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"extends": [],
"files": { "ignoreUnknown": true },
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"ignore": [],
"indentSize": 2,
"indentStyle": "space",
"lineWidth": 80
},
"javascript": {
"parser": {
"unsafeParameterDecoratorsEnabled": true
},
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "single",
"trailingComma": "all",
"semicolons": "asNeeded",
"arrowParentheses": "asNeeded"
}
},
"json": {
"parser": { "allowComments": true },
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentSize": 2,
"lineWidth": 80
}
},
"linter": {
"ignore": [],
"rules": {
"a11y": {
"noAriaUnsupportedElements": "error",
"noBlankTarget": "error",
"noDistractingElements": "error",
"noNoninteractiveElementToInteractiveRole": "error",
"noPositiveTabindex": "error",
"noRedundantAlt": "error",
"useAltText": "error",
"useAriaPropsForRole": "error",
"useHtmlLang": "error",
"useIframeTitle": "error",
"useMediaCaption": "error",
"useValidAnchor": "error",
"useValidAriaProps": "error",
"useValidAriaValues": "error",
"useValidLang": "error"
},
"complexity": {
"noBannedTypes": "warn",
"noExtraBooleanCast": "error",
"noForEach": "warn",
"noMultipleSpacesInRegularExpressionLiterals": "error",
"noStaticOnlyClass": "error",
"noUselessConstructor": "error",
"noUselessRename": "error",
"noUselessSwitchCase": "error",
"useLiteralKeys": "error",
"useOptionalChain": "error",
"useSimplifiedLogicExpression": "error"
},
"correctness": {
"noChildrenProp": "error",
"noConstAssign": "error",
"noConstantCondition": "error",
"noEmptyPattern": "error",
"noPrecisionLoss": "error",
"noRenderReturnValue": "error",
"noSelfAssign": "error",
"noSetterReturn": "error",
"noStringCaseMismatch": "error",
"noUnnecessaryContinue": "error",
"noUnreachable": "error",
"noInvalidConstructorSuper": "error",
"noUnsafeOptionalChaining": "error",
"noUnusedVariables": "warn",
"noVoidElementsWithChildren": "error",
"noVoidTypeReturn": "error",
"useIsNan": "error",
"useValidForDirection": "error"
},
"performance": {
"noDelete": "error"
},
"security": {
"noDangerouslySetInnerHtml": "warn"
},
"style": {
"noArguments": "error",
"noNegationElse": "warn",
"noNonNullAssertion": "warn",
"noParameterAssign": "error",
"noUnusedTemplateLiteral": "error",
"noVar": "error",
"useConst": "error",
"useExponentiationOperator": "error",
"useNamingConvention": "off",
"useSelfClosingElements": "error",
"useShorthandArrayType": "error",
"useTemplate": "error"
},
"suspicious": {
"noArrayIndexKey": "error",
"noAssignInExpressions": "error",
"noAsyncPromiseExecutor": "error",
"noCatchAssign": "error",
"noClassAssign": "error",
"noCommentText": "error",
"noCompareNegZero": "error",
"noConsoleLog": "warn",
"noDoubleEquals": "error",
"noDuplicateCase": "error",
"noDuplicateClassMembers": "error",
"noDuplicateJsxProps": "error",
"noDuplicateObjectKeys": "error",
"noDuplicateParameters": "error",
"noEmptyInterface": "error",
"noExplicitAny": "warn",
"noExtraNonNullAssertion": "error",
"noFunctionAssign": "error",
"noImportAssign": "error",
"noPrototypeBuiltins": "error",
"noRedeclare": "error",
"noRedundantUseStrict": "error",
"noSelfCompare": "error",
"noShadowRestrictedNames": "error",
"noUnsafeDeclarationMerging": "error",
"useDefaultSwitchClauseLast": "error",
"useGetterReturn": "error",
"useValidTypeof": "error"
},
"nursery": {
"noDuplicateJsonKeys": "error",
"noEmptyCharacterClassInRegex": "error",
"noExcessiveComplexity": "warn",
"noGlobalIsFinite": "error",
"noGlobalIsNan": "error",
"noUselessElse": "warn",
"useArrowFunction": "warn",
"useCollapsedElseIf": "warn",
"useExhaustiveDependencies": "warn",
"useGroupedTypeImport": "error",
"useHookAtTopLevel": "error",
"useIsArray": "error",
"useShorthandAssign": "error"
}
}
}
}