-
Notifications
You must be signed in to change notification settings - Fork 0
/
biome.json
167 lines (166 loc) · 4.67 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
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"organizeImports": {
"enabled": true
},
"files": {
"maxSize": 2097152,
"ignore": [
"theme.d.ts",
"documentation/plugins",
"documentation/static",
"libs/graphql-codegen",
"libs/translations/src/i18n/**/*"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
},
"javascript": {
"parser": {
"unsafeParameterDecoratorsEnabled": true
},
"formatter": {
"enabled": true,
"jsxQuoteStyle": "double",
"arrowParentheses": "always",
"quoteStyle": "double",
"semicolons": "asNeeded",
"trailingCommas": "all",
"attributePosition": "auto",
"indentStyle": "space",
"indentWidth": 2,
"bracketSameLine": true,
"quoteProperties": "asNeeded",
"bracketSpacing": true,
"lineWidth": 100
}
},
"json": {
"formatter": {
"enabled": true
},
"parser": {
"allowComments": false,
"allowTrailingCommas": false
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"a11y": {
"noAriaHiddenOnFocusable": "warn",
"noAutofocus": "warn",
"noBlankTarget": "error",
"noNoninteractiveElementToInteractiveRole": "warn",
"noNoninteractiveTabindex": "warn",
"noPositiveTabindex": "warn",
"noSvgWithoutTitle": "warn",
"useAltText": "warn",
"useButtonType": "warn",
"useHtmlLang": "warn",
"useIframeTitle": "warn",
"useKeyWithClickEvents": "warn",
"useKeyWithMouseEvents": "warn",
"useValidAnchor": "warn"
},
"nursery": {},
"complexity": {
"useRegexLiterals": "error",
"noExcessiveCognitiveComplexity": {
"options": {
"maxAllowedComplexity": 18
},
"level": "error"
},
"noBannedTypes": "warn",
"noExtraBooleanCast": "warn",
"noForEach": "off",
"noStaticOnlyClass": "error",
"noUselessCatch": "error",
"noUselessConstructor": "error",
"noUselessFragments": "off",
"noUselessRename": "error",
"noUselessSwitchCase": "error",
"useArrowFunction": "error",
"useLiteralKeys": "warn",
"useOptionalChain": "error"
},
"correctness": {
"noUndeclaredVariables": "warn",
"noConstAssign": "error",
"noChildrenProp": "warn",
"noPrecisionLoss": "error",
"useIsNan": "error",
"noInnerDeclarations": "error",
"noUnusedVariables": "error",
"noUnusedImports": "error",
"noConstantCondition": "error",
"noEmptyPattern": "error",
"noSwitchDeclarations": "error",
"noUnreachable": "error",
"noUnsafeOptionalChaining": "error",
"useExhaustiveDependencies": "error",
"useHookAtTopLevel": "error"
},
"performance": {
"noAccumulatingSpread": "warn",
"noDelete": "warn"
},
"security": {
"noGlobalEval": "error",
"noDangerouslySetInnerHtmlWithChildren": "error",
"noDangerouslySetInnerHtml": "error"
},
"style": {
"useWhile": "warn",
"noVar": "error",
"useImportType": "off",
"noCommaOperator": "error",
"noNonNullAssertion": "warn",
"noParameterAssign": "warn",
"noUnusedTemplateLiteral": "warn",
"noUselessElse": "error",
"useConst": "error",
"useDefaultParameterLast": "warn",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"useTemplate": "error"
},
"suspicious": {
"noDuplicateCase": "error",
"useIsArray": "warn",
"noArrayIndexKey": "warn",
"noAssignInExpressions": "error",
"noAsyncPromiseExecutor": "error",
"noConfusingVoidType": "warn",
"noControlCharactersInRegex": "error",
"noDoubleEquals": "error",
"noDuplicateJsxProps": "error",
"noDuplicateObjectKeys": "error",
"noEmptyInterface": "error",
"noExplicitAny": "warn",
"noFallthroughSwitchClause": "error",
"noGlobalIsNan": "error",
"noImplicitAnyLet": "warn",
"noPrototypeBuiltins": "error",
"noRedeclare": "error",
"noRedundantUseStrict": "error",
"noSelfCompare": "error",
"noShadowRestrictedNames": "warn",
"useDefaultSwitchClauseLast": "error",
"useValidTypeof": "error"
}
}
},
"vcs": {
"clientKind": "git",
"defaultBranch": "main",
"enabled": true,
"useIgnoreFile": true
}
}