Skip to content

Commit f9ed929

Browse files
committed
fix: format
1 parent 701fd6b commit f9ed929

File tree

8 files changed

+260
-275
lines changed

8 files changed

+260
-275
lines changed

biome.json

Lines changed: 185 additions & 204 deletions
Original file line numberDiff line numberDiff line change
@@ -1,205 +1,186 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"vcs": {
4-
"enabled": true,
5-
"clientKind": "git",
6-
"useIgnoreFile": true
7-
},
8-
"files": {
9-
"ignoreUnknown": false,
10-
"ignore": []
11-
},
12-
"formatter": {
13-
"enabled": true,
14-
"useEditorconfig": true,
15-
"formatWithErrors": false,
16-
"indentStyle": "space",
17-
"indentWidth": 2,
18-
"lineEnding": "lf",
19-
"lineWidth": 100,
20-
"attributePosition": "auto",
21-
"bracketSpacing": true,
22-
"ignore": [
23-
"**/package.json",
24-
"**/yarn.lock",
25-
"coverage/**",
26-
"**/coverage/**",
27-
"**/build",
28-
"**/dist",
29-
"**/node_modules",
30-
"**/vendor-js/**",
31-
"**/*-css.ts",
32-
"**/*-svg.ts"
33-
]
34-
},
35-
"organizeImports": {
36-
"enabled": true
37-
},
38-
"linter": {
39-
"enabled": true,
40-
"rules": {
41-
"recommended": false,
42-
"a11y": {
43-
"noBlankTarget": "error"
44-
},
45-
"complexity": {
46-
"noBannedTypes": "error",
47-
"noExtraBooleanCast": "error",
48-
"noMultipleSpacesInRegularExpressionLiterals": "error",
49-
"noUselessCatch": "error",
50-
"noUselessConstructor": "off",
51-
"noUselessRename": "warn",
52-
"noUselessStringConcat": "warn",
53-
"noUselessTernary": "error",
54-
"noUselessThisAlias": "error",
55-
"noUselessTypeConstraint": "error",
56-
"noUselessUndefinedInitialization": "error",
57-
"noWith": "error",
58-
"useArrowFunction": "warn"
59-
},
60-
"correctness": {
61-
"noConstAssign": "error",
62-
"noConstantCondition": "error",
63-
"noEmptyCharacterClassInRegex": "error",
64-
"noEmptyPattern": "off",
65-
"noGlobalObjectCalls": "error",
66-
"noInnerDeclarations": "error",
67-
"noInvalidConstructorSuper": "error",
68-
"noNewSymbol": "error",
69-
"noNonoctalDecimalEscape": "error",
70-
"noPrecisionLoss": "error",
71-
"noSelfAssign": "error",
72-
"noSetterReturn": "error",
73-
"noSwitchDeclarations": "error",
74-
"noUndeclaredVariables": "error",
75-
"noUnreachable": "error",
76-
"noUnreachableSuper": "error",
77-
"noUnsafeFinally": "error",
78-
"noUnsafeOptionalChaining": "error",
79-
"noUnusedImports": "error",
80-
"noUnusedLabels": "error",
81-
"noUnusedVariables": "error",
82-
"useArrayLiterals": "off",
83-
"useExhaustiveDependencies": "warn",
84-
"useHookAtTopLevel": "error",
85-
"useIsNan": "error",
86-
"useJsxKeyInIterable": "error",
87-
"useValidForDirection": "error",
88-
"useYield": "error"
89-
},
90-
"security": {
91-
"noDangerouslySetInnerHtml": "warn"
92-
},
93-
"style": {
94-
"noArguments": "warn",
95-
"noDoneCallback": "error",
96-
"noNamespace": "error",
97-
"noRestrictedGlobals": {
98-
"level": "error",
99-
"options": {
100-
"deniedGlobals": [
101-
"parseInt"
102-
]
103-
}
104-
},
105-
"noUselessElse": "warn",
106-
"noVar": "warn",
107-
"useAsConstAssertion": "error",
108-
"useBlockStatements": "off",
109-
"useCollapsedElseIf": "error",
110-
"useConsistentBuiltinInstantiation": "error",
111-
"useTemplate": "warn"
112-
},
113-
"suspicious": {
114-
"noAssignInExpressions": "error",
115-
"noAsyncPromiseExecutor": "error",
116-
"noCatchAssign": "error",
117-
"noClassAssign": "error",
118-
"noCommentText": "error",
119-
"noCompareNegZero": "error",
120-
"noConsole": {
121-
"level": "error",
122-
"options": {
123-
"allow": [
124-
"warn",
125-
"error",
126-
"info"
127-
]
128-
}
129-
},
130-
"noControlCharactersInRegex": "error",
131-
"noDebugger": "error",
132-
"noDuplicateCase": "error",
133-
"noDuplicateClassMembers": "error",
134-
"noDuplicateJsxProps": "error",
135-
"noDuplicateObjectKeys": "error",
136-
"noDuplicateParameters": "error",
137-
"noEmptyBlockStatements": "off",
138-
"noExplicitAny": "warn",
139-
"noExportsInTest": "error",
140-
"noExtraNonNullAssertion": "error",
141-
"noFallthroughSwitchClause": "error",
142-
"noFocusedTests": "error",
143-
"noFunctionAssign": "error",
144-
"noGlobalAssign": "error",
145-
"noImportAssign": "error",
146-
"noMisleadingCharacterClass": "error",
147-
"noMisleadingInstantiator": "error",
148-
"noMisplacedAssertion": "error",
149-
"noPrototypeBuiltins": "error",
150-
"noRedeclare": "error",
151-
"noShadowRestrictedNames": "error",
152-
"noSkippedTests": "warn",
153-
"noSparseArray": "error",
154-
"noUnsafeDeclarationMerging": "error",
155-
"noUnsafeNegation": "error",
156-
"useGetterReturn": "error",
157-
"useValidTypeof": "error"
158-
}
159-
},
160-
"ignore": [
161-
"**/*.md",
162-
"**/build",
163-
"**/dist",
164-
"**/node_modules",
165-
"**/vendor-js/**",
166-
"**/*.json"
167-
]
168-
},
169-
"javascript": {
170-
"formatter": {
171-
"jsxQuoteStyle": "double",
172-
"quoteProperties": "asNeeded",
173-
"trailingCommas": "es5",
174-
"semicolons": "always",
175-
"arrowParentheses": "always",
176-
"bracketSameLine": false,
177-
"quoteStyle": "single",
178-
"attributePosition": "auto",
179-
"bracketSpacing": true
180-
},
181-
"jsxRuntime": "transparent",
182-
"globals": [
183-
"global",
184-
"browser",
185-
"expect"
186-
]
187-
},
188-
"overrides": [
189-
{
190-
"include": [
191-
"**/*.test.*"
192-
],
193-
"linter": {
194-
"rules": {
195-
"suspicious": {
196-
"noExplicitAny": "off"
197-
},
198-
"correctness": {
199-
"noUndeclaredVariables": "off"
200-
}
201-
}
202-
}
203-
}
204-
]
205-
}
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"ignore": []
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"useEditorconfig": true,
15+
"formatWithErrors": false,
16+
"indentStyle": "space",
17+
"indentWidth": 2,
18+
"lineEnding": "lf",
19+
"lineWidth": 100,
20+
"attributePosition": "auto",
21+
"bracketSpacing": true,
22+
"ignore": [
23+
"**/package.json",
24+
"**/yarn.lock",
25+
"coverage/**",
26+
"**/coverage/**",
27+
"**/build",
28+
"**/dist",
29+
"**/node_modules",
30+
"**/vendor-js/**",
31+
"**/*-css.ts",
32+
"**/*-svg.ts"
33+
]
34+
},
35+
"organizeImports": {
36+
"enabled": true
37+
},
38+
"linter": {
39+
"enabled": true,
40+
"rules": {
41+
"recommended": false,
42+
"a11y": {
43+
"noBlankTarget": "error"
44+
},
45+
"complexity": {
46+
"noBannedTypes": "error",
47+
"noExtraBooleanCast": "error",
48+
"noMultipleSpacesInRegularExpressionLiterals": "error",
49+
"noUselessCatch": "error",
50+
"noUselessConstructor": "off",
51+
"noUselessRename": "warn",
52+
"noUselessStringConcat": "warn",
53+
"noUselessTernary": "error",
54+
"noUselessThisAlias": "error",
55+
"noUselessTypeConstraint": "error",
56+
"noUselessUndefinedInitialization": "error",
57+
"noWith": "error",
58+
"useArrowFunction": "warn"
59+
},
60+
"correctness": {
61+
"noConstAssign": "error",
62+
"noConstantCondition": "error",
63+
"noEmptyCharacterClassInRegex": "error",
64+
"noEmptyPattern": "off",
65+
"noGlobalObjectCalls": "error",
66+
"noInnerDeclarations": "error",
67+
"noInvalidConstructorSuper": "error",
68+
"noNewSymbol": "error",
69+
"noNonoctalDecimalEscape": "error",
70+
"noPrecisionLoss": "error",
71+
"noSelfAssign": "error",
72+
"noSetterReturn": "error",
73+
"noSwitchDeclarations": "error",
74+
"noUndeclaredVariables": "error",
75+
"noUnreachable": "error",
76+
"noUnreachableSuper": "error",
77+
"noUnsafeFinally": "error",
78+
"noUnsafeOptionalChaining": "error",
79+
"noUnusedImports": "error",
80+
"noUnusedLabels": "error",
81+
"noUnusedVariables": "error",
82+
"useArrayLiterals": "off",
83+
"useExhaustiveDependencies": "warn",
84+
"useHookAtTopLevel": "error",
85+
"useIsNan": "error",
86+
"useJsxKeyInIterable": "error",
87+
"useValidForDirection": "error",
88+
"useYield": "error"
89+
},
90+
"security": {
91+
"noDangerouslySetInnerHtml": "warn"
92+
},
93+
"style": {
94+
"noArguments": "warn",
95+
"noDoneCallback": "error",
96+
"noNamespace": "error",
97+
"noRestrictedGlobals": {
98+
"level": "error",
99+
"options": {
100+
"deniedGlobals": ["parseInt"]
101+
}
102+
},
103+
"noUselessElse": "warn",
104+
"noVar": "warn",
105+
"useAsConstAssertion": "error",
106+
"useBlockStatements": "off",
107+
"useCollapsedElseIf": "error",
108+
"useConsistentBuiltinInstantiation": "error",
109+
"useTemplate": "warn"
110+
},
111+
"suspicious": {
112+
"noAssignInExpressions": "error",
113+
"noAsyncPromiseExecutor": "error",
114+
"noCatchAssign": "error",
115+
"noClassAssign": "error",
116+
"noCommentText": "error",
117+
"noCompareNegZero": "error",
118+
"noConsole": {
119+
"level": "error",
120+
"options": {
121+
"allow": ["warn", "error", "info"]
122+
}
123+
},
124+
"noControlCharactersInRegex": "error",
125+
"noDebugger": "error",
126+
"noDuplicateCase": "error",
127+
"noDuplicateClassMembers": "error",
128+
"noDuplicateJsxProps": "error",
129+
"noDuplicateObjectKeys": "error",
130+
"noDuplicateParameters": "error",
131+
"noEmptyBlockStatements": "off",
132+
"noExplicitAny": "warn",
133+
"noExportsInTest": "error",
134+
"noExtraNonNullAssertion": "error",
135+
"noFallthroughSwitchClause": "error",
136+
"noFocusedTests": "error",
137+
"noFunctionAssign": "error",
138+
"noGlobalAssign": "error",
139+
"noImportAssign": "error",
140+
"noMisleadingCharacterClass": "error",
141+
"noMisleadingInstantiator": "error",
142+
"noMisplacedAssertion": "error",
143+
"noPrototypeBuiltins": "error",
144+
"noRedeclare": "error",
145+
"noShadowRestrictedNames": "error",
146+
"noSkippedTests": "warn",
147+
"noSparseArray": "error",
148+
"noUnsafeDeclarationMerging": "error",
149+
"noUnsafeNegation": "error",
150+
"useGetterReturn": "error",
151+
"useValidTypeof": "error"
152+
}
153+
},
154+
"ignore": ["**/*.md", "**/build", "**/dist", "**/node_modules", "**/vendor-js/**", "**/*.json"]
155+
},
156+
"javascript": {
157+
"formatter": {
158+
"jsxQuoteStyle": "double",
159+
"quoteProperties": "asNeeded",
160+
"trailingCommas": "es5",
161+
"semicolons": "always",
162+
"arrowParentheses": "always",
163+
"bracketSameLine": false,
164+
"quoteStyle": "single",
165+
"attributePosition": "auto",
166+
"bracketSpacing": true
167+
},
168+
"jsxRuntime": "transparent",
169+
"globals": ["global", "browser", "expect"]
170+
},
171+
"overrides": [
172+
{
173+
"include": ["**/*.test.*"],
174+
"linter": {
175+
"rules": {
176+
"suspicious": {
177+
"noExplicitAny": "off"
178+
},
179+
"correctness": {
180+
"noUndeclaredVariables": "off"
181+
}
182+
}
183+
}
184+
}
185+
]
186+
}

0 commit comments

Comments
 (0)