|
1 | 1 | { |
2 | 2 | "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", |
3 | 3 | "files": { |
4 | | - "ignore": [ |
5 | | - "./.cache/**/*", |
6 | | - "./coverage/**/*", |
7 | | - "./dist/**/*", |
8 | | - "./lib/**/*", |
9 | | - "./node_modules/**/*", |
10 | | - "./website/routeTree.gen.ts" |
| 4 | + "includes": [ |
| 5 | + "**", |
| 6 | + "!.cache/**/*", |
| 7 | + "!coverage/**/*", |
| 8 | + "!dist/**/*", |
| 9 | + "!lib/**/*", |
| 10 | + "!node_modules/**/*", |
| 11 | + "!website/routeTree.gen.ts" |
11 | 12 | ] |
12 | 13 | }, |
13 | 14 | "formatter": { |
14 | | - "ignore": ["*.ts", "*.tsx", "./package.json"], |
| 15 | + "includes": ["**", "!**/*.ts", "!**/*.tsx", "!package.json"], |
15 | 16 | "indentStyle": "space", |
16 | 17 | "lineWidth": 100 |
17 | 18 | }, |
|
33 | 34 | } |
34 | 35 | }, |
35 | 36 | "linter": { |
| 37 | + "domains": { |
| 38 | + "project": "recommended" |
| 39 | + }, |
36 | 40 | "rules": { |
37 | 41 | "recommended": false, |
38 | 42 | "a11y": { |
39 | 43 | "noAccessKey": "warn", |
40 | 44 | "noAriaHiddenOnFocusable": "warn", |
41 | 45 | "noAriaUnsupportedElements": "warn", |
42 | 46 | "noAutofocus": "off", |
43 | | - "noBlankTarget": "warn", |
44 | 47 | "noDistractingElements": "warn", |
45 | 48 | "noHeaderScope": "warn", |
46 | 49 | "noInteractiveElementToNoninteractiveRole": "warn", |
|
72 | 75 | "useValidLang": "warn" |
73 | 76 | }, |
74 | 77 | "complexity": { |
| 78 | + "noAdjacentSpacesInRegex": "warn", |
| 79 | + "noArguments": "warn", |
75 | 80 | "noBannedTypes": "warn", |
| 81 | + "noCommaOperator": "warn", |
76 | 82 | "noEmptyTypeParameters": "warn", |
77 | 83 | "noExcessiveCognitiveComplexity": "off", |
78 | 84 | "noExcessiveNestedTestSuites": "off", |
79 | 85 | "noExtraBooleanCast": "warn", |
| 86 | + "noFlatMapIdentity": "warn", |
80 | 87 | "noForEach": "warn", |
81 | | - "noMultipleSpacesInRegularExpressionLiterals": "warn", |
82 | 88 | "noStaticOnlyClass": "warn", |
83 | 89 | "noThisInStatic": "warn", |
84 | 90 | "noUselessCatch": "warn", |
85 | 91 | "noUselessConstructor": "warn", |
| 92 | + "noUselessContinue": "warn", |
86 | 93 | "noUselessEmptyExport": "warn", |
87 | 94 | "noUselessFragments": "warn", |
88 | 95 | "noUselessLabel": "warn", |
|
95 | 102 | "noUselessTypeConstraint": "warn", |
96 | 103 | "noUselessUndefinedInitialization": "warn", |
97 | 104 | "noVoid": "warn", |
98 | | - "noWith": "warn", |
99 | 105 | "useArrowFunction": "warn", |
100 | 106 | "useDateNow": "warn", |
101 | 107 | "useFlatMap": "warn", |
102 | 108 | "useLiteralKeys": "warn", |
| 109 | + "useNumericLiterals": "warn", |
103 | 110 | "useOptionalChain": "warn", |
104 | 111 | "useRegexLiterals": "warn", |
105 | 112 | "useSimpleNumberKeys": "warn", |
106 | | - "useSimplifiedLogicExpression": "off" |
| 113 | + "useSimplifiedLogicExpression": "off", |
| 114 | + "useWhile": "warn" |
107 | 115 | }, |
108 | 116 | "correctness": { |
109 | 117 | "noChildrenProp": "off", |
|
113 | 121 | "noConstructorReturn": "warn", |
114 | 122 | "noEmptyCharacterClassInRegex": "warn", |
115 | 123 | "noEmptyPattern": "warn", |
116 | | - "noFlatMapIdentity": "warn", |
117 | 124 | "noGlobalObjectCalls": "warn", |
118 | 125 | "noInnerDeclarations": "warn", |
119 | 126 | "noInvalidBuiltinInstantiation": "warn", |
120 | 127 | "noInvalidConstructorSuper": "warn", |
121 | 128 | "noInvalidDirectionInLinearGradient": "warn", |
122 | 129 | "noInvalidGridAreas": "warn", |
123 | | - "noInvalidNewBuiltin": "warn", |
124 | 130 | "noInvalidPositionAtImportRule": "warn", |
125 | 131 | "noInvalidUseBeforeDeclaration": "warn", |
126 | | - "noNewSymbol": "warn", |
127 | 132 | "noNodejsModules": "warn", |
128 | 133 | "noNonoctalDecimalEscape": "warn", |
129 | 134 | "noPrecisionLoss": "warn", |
| 135 | + "noPrivateImports": "warn", |
130 | 136 | "noRenderReturnValue": "warn", |
131 | 137 | "noSelfAssign": "warn", |
132 | 138 | "noSetterReturn": "warn", |
|
139 | 145 | "noUnknownProperty": "warn", |
140 | 146 | "noUnknownUnit": "warn", |
141 | 147 | "noUnmatchableAnbSelector": "warn", |
142 | | - "noUnnecessaryContinue": "warn", |
143 | 148 | "noUnreachable": "warn", |
144 | 149 | "noUnreachableSuper": "warn", |
145 | 150 | "noUnsafeFinally": "warn", |
|
151 | 156 | "noUnusedVariables": "warn", |
152 | 157 | "noVoidElementsWithChildren": "warn", |
153 | 158 | "noVoidTypeReturn": "warn", |
154 | | - "useArrayLiterals": "warn", |
155 | 159 | "useExhaustiveDependencies": "off", |
156 | 160 | "useHookAtTopLevel": "warn", |
157 | 161 | "useImportExtensions": "off", |
158 | 162 | "useIsNan": "warn", |
159 | 163 | "useJsxKeyInIterable": "off", |
160 | 164 | "useValidForDirection": "warn", |
161 | | - "useYield": "warn" |
| 165 | + "useYield": "warn", |
| 166 | + "useValidTypeof": "warn" |
162 | 167 | }, |
163 | 168 | "performance": { |
164 | 169 | "noAccumulatingSpread": "warn", |
165 | 170 | "noBarrelFile": "off", |
166 | 171 | "noDelete": "warn", |
| 172 | + "noNamespaceImport": "warn", |
167 | 173 | "noReExportAll": "off", |
168 | 174 | "useTopLevelRegex": "warn" |
169 | 175 | }, |
170 | 176 | "security": { |
| 177 | + "noBlankTarget": "warn", |
171 | 178 | "noDangerouslySetInnerHtml": "warn", |
172 | 179 | "noDangerouslySetInnerHtmlWithChildren": "warn", |
173 | 180 | "noGlobalEval": "warn" |
174 | 181 | }, |
175 | 182 | "style": { |
176 | | - "noArguments": "warn", |
177 | | - "noCommaOperator": "warn", |
178 | 183 | "noDefaultExport": "off", |
179 | 184 | "noDoneCallback": "warn", |
180 | 185 | "noImplicitBoolean": "off", |
181 | 186 | "noInferrableTypes": "warn", |
182 | 187 | "noNamespace": "warn", |
183 | | - "noNamespaceImport": "warn", |
184 | 188 | "noNegationElse": "warn", |
185 | 189 | "noNonNullAssertion": "off", |
186 | 190 | "noParameterAssign": "off", |
|
189 | 193 | "noShoutyConstants": "warn", |
190 | 194 | "noUnusedTemplateLiteral": "warn", |
191 | 195 | "noUselessElse": "warn", |
192 | | - "noVar": "warn", |
193 | 196 | "noYodaExpression": "warn", |
| 197 | + "useArrayLiterals": "warn", |
194 | 198 | "useAsConstAssertion": "warn", |
195 | 199 | "useBlockStatements": "off", |
196 | 200 | "useCollapsedElseIf": "warn", |
|
212 | 216 | "useNodeAssertStrict": "warn", |
213 | 217 | "useNodejsImportProtocol": "warn", |
214 | 218 | "useNumberNamespace": "warn", |
215 | | - "useNumericLiterals": "warn", |
216 | 219 | "useSelfClosingElements": "warn", |
217 | | - "useShorthandArrayType": "warn", |
218 | 220 | "useShorthandAssign": "warn", |
219 | 221 | "useShorthandFunctionType": "warn", |
220 | | - "useSingleCaseStatement": "off", |
221 | 222 | "useSingleVarDeclarator": "warn", |
222 | 223 | "useTemplate": "warn", |
223 | 224 | "useThrowNewError": "warn", |
224 | | - "useThrowOnlyError": "warn", |
225 | | - "useWhile": "warn" |
| 225 | + "useThrowOnlyError": "warn" |
226 | 226 | }, |
227 | 227 | "suspicious": { |
228 | 228 | "noApproximativeNumericConstant": "warn", |
|
236 | 236 | "noConfusingLabels": "warn", |
237 | 237 | "noConfusingVoidType": "warn", |
238 | 238 | "noConsole": "warn", |
239 | | - "noConsoleLog": "warn", |
240 | 239 | "noConstEnum": "warn", |
241 | 240 | "noControlCharactersInRegex": "warn", |
242 | 241 | "noDebugger": "warn", |
|
284 | 283 | "noThenProperty": "warn", |
285 | 284 | "noUnsafeDeclarationMerging": "warn", |
286 | 285 | "noUnsafeNegation": "warn", |
| 286 | + "noVar": "warn", |
| 287 | + "noWith": "warn", |
287 | 288 | "useAwait": "warn", |
288 | 289 | "useDefaultSwitchClauseLast": "warn", |
289 | 290 | "useErrorMessage": "warn", |
290 | 291 | "useGetterReturn": "warn", |
291 | 292 | "useIsArray": "warn", |
292 | 293 | "useNamespaceKeyword": "warn", |
293 | | - "useNumberToFixedDigitsArgument": "warn", |
294 | | - "useValidTypeof": "warn" |
| 294 | + "useNumberToFixedDigitsArgument": "warn" |
295 | 295 | } |
296 | 296 | } |
297 | 297 | }, |
298 | | - "organizeImports": { |
299 | | - "enabled": false |
300 | | - }, |
| 298 | + "assist": { "actions": { "source": { "organizeImports": "off" } } }, |
301 | 299 | "overrides": [ |
302 | 300 | { |
303 | | - "include": ["**/*.test.*"], |
| 301 | + "includes": ["**/*.test.*"], |
304 | 302 | "linter": { |
305 | 303 | "rules": { |
306 | 304 | "performance": { |
|
310 | 308 | } |
311 | 309 | }, |
312 | 310 | { |
313 | | - "include": ["**/*.js", "rolldown.config.ts"], |
| 311 | + "includes": ["**/*.js", "**/rolldown.config.ts"], |
314 | 312 | "linter": { |
315 | 313 | "rules": { |
316 | 314 | "correctness": { |
317 | 315 | "noNodejsModules": "off" |
318 | 316 | }, |
319 | 317 | "suspicious": { |
320 | | - "noConsole": "off", |
321 | | - "noConsoleLog": "off" |
| 318 | + "noConsole": "off" |
322 | 319 | } |
323 | 320 | } |
324 | 321 | } |
|
0 commit comments