@dvashim/biome-config 1.1.13 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/dist/biome.react-balanced.json +129 -111
- package/dist/biome.react-recommended.json +27 -25
- package/dist/biome.react-strict.json +105 -89
- package/dist/biome.recommended.json +24 -22
- package/package.json +23 -23
package/README.md
CHANGED
|
@@ -96,10 +96,15 @@ React balanced configuration:
|
|
|
96
96
|
- lineWidth: `80`
|
|
97
97
|
- useEditorconfig: `true`
|
|
98
98
|
|
|
99
|
+
### Javascript
|
|
100
|
+
|
|
101
|
+
- experimentalEmbeddedSnippetsEnabled: `true`
|
|
102
|
+
- jsxRuntime: `"transparent"`
|
|
103
|
+
|
|
99
104
|
### Javascript Formatter
|
|
100
105
|
|
|
101
106
|
- arrowParentheses: `"always"`
|
|
102
|
-
- jsxQuoteStyle: `"
|
|
107
|
+
- jsxQuoteStyle: `"double"`
|
|
103
108
|
- operatorLinebreak: `"before"`
|
|
104
109
|
- quoteProperties: `"asNeeded"`
|
|
105
110
|
- quoteStyle: `"single"`
|
|
@@ -120,10 +125,12 @@ React balanced configuration:
|
|
|
120
125
|
|
|
121
126
|
- actions:
|
|
122
127
|
- recommended: `true`
|
|
128
|
+
- source
|
|
129
|
+
- noDuplicateClasses: `"on"`
|
|
123
130
|
|
|
124
131
|
### Schema
|
|
125
132
|
|
|
126
|
-
- `https://biomejs.dev/schemas/2.
|
|
133
|
+
- `https://biomejs.dev/schemas/2.4.4/schema.json`
|
|
127
134
|
|
|
128
135
|
## Rules
|
|
129
136
|
|
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
|
|
3
|
+
|
|
4
|
+
"assist": {
|
|
5
|
+
"actions": {
|
|
6
|
+
"recommended": true,
|
|
7
|
+
"source": {
|
|
8
|
+
"noDuplicateClasses": "on"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"files": {
|
|
14
|
+
"includes": ["**", "!!**/dist"]
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
"formatter": {
|
|
18
|
+
"attributePosition": "auto",
|
|
19
|
+
"bracketSameLine": false,
|
|
20
|
+
"bracketSpacing": true,
|
|
21
|
+
"expand": "auto",
|
|
22
|
+
"formatWithErrors": false,
|
|
23
|
+
"indentStyle": "space",
|
|
24
|
+
"indentWidth": 2,
|
|
25
|
+
"lineEnding": "lf",
|
|
26
|
+
"lineWidth": 80,
|
|
27
|
+
"useEditorconfig": true
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
"html": {
|
|
31
|
+
"experimentalFullSupportEnabled": true
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
"javascript": {
|
|
35
|
+
"experimentalEmbeddedSnippetsEnabled": true,
|
|
36
|
+
"globals": [],
|
|
37
|
+
"jsxRuntime": "transparent",
|
|
38
|
+
"formatter": {
|
|
39
|
+
"arrowParentheses": "always",
|
|
40
|
+
"jsxQuoteStyle": "double",
|
|
41
|
+
"operatorLinebreak": "before",
|
|
42
|
+
"quoteProperties": "asNeeded",
|
|
43
|
+
"quoteStyle": "single",
|
|
44
|
+
"semicolons": "asNeeded",
|
|
45
|
+
"trailingCommas": "es5"
|
|
46
|
+
},
|
|
47
|
+
"parser": {
|
|
48
|
+
"gritMetavariables": false,
|
|
49
|
+
"jsxEverywhere": true,
|
|
50
|
+
"unsafeParameterDecoratorsEnabled": false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
"json": {
|
|
55
|
+
"parser": {
|
|
56
|
+
"allowComments": true,
|
|
57
|
+
"allowTrailingCommas": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
3
60
|
|
|
4
61
|
"linter": {
|
|
5
62
|
"rules": {
|
|
@@ -13,19 +70,22 @@
|
|
|
13
70
|
},
|
|
14
71
|
"complexity": {
|
|
15
72
|
"noExcessiveCognitiveComplexity": "warn",
|
|
16
|
-
"noExcessiveLinesPerFunction": {
|
|
17
|
-
"level": "warn",
|
|
18
|
-
"options": {
|
|
19
|
-
"maxLines": 100
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
73
|
"noExcessiveNestedTestSuites": "warn",
|
|
23
74
|
"noForEach": "warn",
|
|
24
75
|
"noImplicitCoercions": "off",
|
|
76
|
+
"noUselessCatchBinding": "warn",
|
|
25
77
|
"noUselessStringConcat": "warn",
|
|
78
|
+
"noUselessUndefined": "warn",
|
|
26
79
|
"noVoid": "warn",
|
|
80
|
+
"useMaxParams": "warn",
|
|
27
81
|
"useSimplifiedLogicExpression": "warn",
|
|
28
|
-
"useWhile": "warn"
|
|
82
|
+
"useWhile": "warn",
|
|
83
|
+
"noExcessiveLinesPerFunction": {
|
|
84
|
+
"level": "warn",
|
|
85
|
+
"options": {
|
|
86
|
+
"maxLines": 100
|
|
87
|
+
}
|
|
88
|
+
}
|
|
29
89
|
},
|
|
30
90
|
"correctness": {
|
|
31
91
|
"noGlobalDirnameFilename": "warn",
|
|
@@ -35,6 +95,7 @@
|
|
|
35
95
|
"noReactPropAssignments": "warn",
|
|
36
96
|
"noUndeclaredDependencies": "warn",
|
|
37
97
|
"noUndeclaredVariables": "warn",
|
|
98
|
+
"noUnresolvedImports": "off",
|
|
38
99
|
"useImportExtensions": "off",
|
|
39
100
|
"useJsonImportAttributes": "warn",
|
|
40
101
|
"useSingleJsDocAsterisk": "warn",
|
|
@@ -42,36 +103,37 @@
|
|
|
42
103
|
},
|
|
43
104
|
"nursery": {
|
|
44
105
|
"noAmbiguousAnchorText": "warn",
|
|
106
|
+
"noConditionalExpect": "warn",
|
|
45
107
|
"noContinue": "info",
|
|
46
|
-
"noDeprecatedImports": "warn",
|
|
47
108
|
"noDivRegex": "warn",
|
|
48
109
|
"noDuplicateAttributes": "warn",
|
|
49
110
|
"noDuplicatedSpreadProps": "warn",
|
|
50
111
|
"noDuplicateEnumValueNames": "warn",
|
|
51
112
|
"noDuplicateEnumValues": "warn",
|
|
52
|
-
"noEmptySource": "warn",
|
|
53
113
|
"noEqualsToNull": "warn",
|
|
54
114
|
"noExcessiveClassesPerFile": "warn",
|
|
55
115
|
"noExcessiveLinesPerFile": "warn",
|
|
56
116
|
"noFloatingClasses": "warn",
|
|
57
117
|
"noFloatingPromises": "warn",
|
|
58
118
|
"noForIn": "warn",
|
|
59
|
-
"noImportCycles": "warn",
|
|
60
|
-
"noIncrementDecrement": {
|
|
61
|
-
"level": "warn",
|
|
62
|
-
"options": {
|
|
63
|
-
"allowForLoopAfterthoughts": true
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"noJsxLiterals": "off",
|
|
67
119
|
"noJsxPropsBind": "error",
|
|
68
120
|
"noLeakedRender": "error",
|
|
69
121
|
"noMisusedPromises": "error",
|
|
70
122
|
"noMultiAssign": "error",
|
|
71
123
|
"noMultiStr": "error",
|
|
124
|
+
"noNestedPromises": "warn",
|
|
72
125
|
"noParametersOnlyUsedInRecursion": "error",
|
|
126
|
+
"noPlaywrightElementHandle": "warn",
|
|
127
|
+
"noPlaywrightEval": "warn",
|
|
128
|
+
"noPlaywrightForceOption": "warn",
|
|
129
|
+
"noPlaywrightMissingAwait": "warn",
|
|
130
|
+
"noPlaywrightNetworkidle": "warn",
|
|
131
|
+
"noPlaywrightPagePause": "warn",
|
|
132
|
+
"noPlaywrightUselessAwait": "warn",
|
|
133
|
+
"noPlaywrightWaitForNavigation": "warn",
|
|
134
|
+
"noPlaywrightWaitForSelector": "warn",
|
|
135
|
+
"noPlaywrightWaitForTimeout": "warn",
|
|
73
136
|
"noProto": "warn",
|
|
74
|
-
"noReactForwardRef": "warn",
|
|
75
137
|
"noRedundantDefaultExport": "warn",
|
|
76
138
|
"noReturnAssign": "warn",
|
|
77
139
|
"noScriptUrl": "warn",
|
|
@@ -81,24 +143,27 @@
|
|
|
81
143
|
"noUndeclaredEnvVars": "warn",
|
|
82
144
|
"noUnknownAttribute": "warn",
|
|
83
145
|
"noUnnecessaryConditions": "warn",
|
|
84
|
-
"
|
|
85
|
-
"noUnusedExpressions": "warn",
|
|
86
|
-
"noUselessCatchBinding": "warn",
|
|
87
|
-
"noUselessUndefined": "warn",
|
|
146
|
+
"noUselessReturn": "info",
|
|
88
147
|
"useArraySortCompare": "warn",
|
|
89
148
|
"useAwaitThenable": "warn",
|
|
90
|
-
"useConsistentArrowReturn": "warn",
|
|
91
149
|
"useConsistentEnumValueType": "warn",
|
|
92
150
|
"useConsistentMethodSignatures": "warn",
|
|
93
151
|
"useDestructuring": "warn",
|
|
94
152
|
"useErrorCause": "warn",
|
|
95
153
|
"useExhaustiveSwitchCases": "warn",
|
|
154
|
+
"useExpect": "warn",
|
|
96
155
|
"useExplicitType": "off",
|
|
97
156
|
"useFind": "warn",
|
|
98
157
|
"useGlobalThis": "warn",
|
|
99
|
-
"
|
|
158
|
+
"usePlaywrightValidDescribeCallback": "warn",
|
|
100
159
|
"useRegexpExec": "warn",
|
|
101
|
-
"useSpread": "warn"
|
|
160
|
+
"useSpread": "warn",
|
|
161
|
+
"noIncrementDecrement": {
|
|
162
|
+
"level": "warn",
|
|
163
|
+
"options": {
|
|
164
|
+
"allowForLoopAfterthoughts": true
|
|
165
|
+
}
|
|
166
|
+
}
|
|
102
167
|
},
|
|
103
168
|
"performance": {
|
|
104
169
|
"noAwaitInLoops": "warn",
|
|
@@ -119,6 +184,7 @@
|
|
|
119
184
|
"noExportedImports": "warn",
|
|
120
185
|
"noImplicitBoolean": "info",
|
|
121
186
|
"noInferrableTypes": "warn",
|
|
187
|
+
"noJsxLiterals": "off",
|
|
122
188
|
"noMagicNumbers": "off",
|
|
123
189
|
"noNamespace": "warn",
|
|
124
190
|
"noNegationElse": "warn",
|
|
@@ -137,22 +203,11 @@
|
|
|
137
203
|
"useCollapsedElseIf": "warn",
|
|
138
204
|
"useCollapsedIf": "warn",
|
|
139
205
|
"useComponentExportOnlyModules": "warn",
|
|
140
|
-
"
|
|
141
|
-
"level": "warn",
|
|
142
|
-
"options": {
|
|
143
|
-
"syntax": "shorthand"
|
|
144
|
-
}
|
|
145
|
-
},
|
|
206
|
+
"useConsistentArrowReturn": "warn",
|
|
146
207
|
"useConsistentBuiltinInstantiation": "warn",
|
|
147
208
|
"useConsistentCurlyBraces": "warn",
|
|
148
209
|
"useConsistentMemberAccessibility": "warn",
|
|
149
210
|
"useConsistentObjectDefinitions": "warn",
|
|
150
|
-
"useConsistentTypeDefinitions": {
|
|
151
|
-
"level": "warn",
|
|
152
|
-
"options": {
|
|
153
|
-
"style": "type"
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
211
|
"useDefaultParameterLast": "warn",
|
|
157
212
|
"useDefaultSwitchClause": "warn",
|
|
158
213
|
"useEnumInitializers": "warn",
|
|
@@ -162,37 +217,55 @@
|
|
|
162
217
|
"useForOf": "warn",
|
|
163
218
|
"useFragmentSyntax": "warn",
|
|
164
219
|
"useGroupedAccessorPairs": "warn",
|
|
165
|
-
"
|
|
220
|
+
"useNumberNamespace": "warn",
|
|
221
|
+
"useNumericSeparators": "warn",
|
|
222
|
+
"useObjectSpread": "warn",
|
|
223
|
+
"useReactFunctionComponents": "warn",
|
|
224
|
+
"useReadonlyClassProperties": "warn",
|
|
225
|
+
"useSelfClosingElements": "warn",
|
|
226
|
+
"useShorthandAssign": "warn",
|
|
227
|
+
"useSingleVarDeclarator": "warn",
|
|
228
|
+
"useSymbolDescription": "warn",
|
|
229
|
+
"useThrowNewError": "warn",
|
|
230
|
+
"useThrowOnlyError": "warn",
|
|
231
|
+
"useTrimStartEnd": "warn",
|
|
232
|
+
"useUnifiedTypeSignatures": "warn",
|
|
233
|
+
"useConsistentArrayType": {
|
|
166
234
|
"level": "warn",
|
|
167
235
|
"options": {
|
|
168
|
-
"
|
|
169
|
-
"requireAscii": true
|
|
236
|
+
"syntax": "shorthand"
|
|
170
237
|
}
|
|
171
238
|
},
|
|
172
|
-
"
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
"
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
239
|
+
"useConsistentTypeDefinitions": {
|
|
240
|
+
"level": "warn",
|
|
241
|
+
"options": {
|
|
242
|
+
"style": "type"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"useNamingConvention": {
|
|
246
|
+
"level": "warn",
|
|
247
|
+
"options": {
|
|
248
|
+
"requireAscii": true,
|
|
249
|
+
"strictCase": false
|
|
250
|
+
}
|
|
251
|
+
}
|
|
185
252
|
},
|
|
186
253
|
"suspicious": {
|
|
187
254
|
"noAlert": "warn",
|
|
188
255
|
"noBitwiseOperators": "warn",
|
|
189
256
|
"noConsole": "warn",
|
|
190
257
|
"noConstantBinaryExpressions": "warn",
|
|
258
|
+
"noDeprecatedImports": "warn",
|
|
259
|
+
"noDuplicateDependencies": "warn",
|
|
191
260
|
"noEmptyBlockStatements": "warn",
|
|
261
|
+
"noEmptySource": "warn",
|
|
192
262
|
"noEvolvingTypes": "warn",
|
|
263
|
+
"noImportCycles": "warn",
|
|
193
264
|
"noMisplacedAssertion": "warn",
|
|
265
|
+
"noReactForwardRef": "warn",
|
|
194
266
|
"noSkippedTests": "warn",
|
|
195
267
|
"noUnassignedVariables": "warn",
|
|
268
|
+
"noUnusedExpressions": "warn",
|
|
196
269
|
"noVar": "error",
|
|
197
270
|
"useAwait": "warn",
|
|
198
271
|
"useErrorMessage": "warn",
|
|
@@ -204,64 +277,9 @@
|
|
|
204
277
|
}
|
|
205
278
|
},
|
|
206
279
|
|
|
207
|
-
"assist": {
|
|
208
|
-
"actions": {
|
|
209
|
-
"recommended": true
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
|
|
213
280
|
"vcs": {
|
|
214
281
|
"clientKind": "git",
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
"files": {
|
|
220
|
-
"includes": ["**", "!!**/dist"]
|
|
221
|
-
},
|
|
222
|
-
|
|
223
|
-
"formatter": {
|
|
224
|
-
"attributePosition": "auto",
|
|
225
|
-
"bracketSameLine": false,
|
|
226
|
-
"bracketSpacing": true,
|
|
227
|
-
"expand": "auto",
|
|
228
|
-
"formatWithErrors": false,
|
|
229
|
-
"indentStyle": "space",
|
|
230
|
-
"indentWidth": 2,
|
|
231
|
-
"lineEnding": "lf",
|
|
232
|
-
"lineWidth": 80,
|
|
233
|
-
"useEditorconfig": true
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
"javascript": {
|
|
237
|
-
"formatter": {
|
|
238
|
-
"arrowParentheses": "always",
|
|
239
|
-
"jsxQuoteStyle": "single",
|
|
240
|
-
"operatorLinebreak": "before",
|
|
241
|
-
"quoteProperties": "asNeeded",
|
|
242
|
-
"quoteStyle": "single",
|
|
243
|
-
"semicolons": "asNeeded",
|
|
244
|
-
"trailingCommas": "es5"
|
|
245
|
-
},
|
|
246
|
-
|
|
247
|
-
"parser": {
|
|
248
|
-
"gritMetavariables": false,
|
|
249
|
-
"jsxEverywhere": true,
|
|
250
|
-
"unsafeParameterDecoratorsEnabled": false
|
|
251
|
-
},
|
|
252
|
-
|
|
253
|
-
"globals": [],
|
|
254
|
-
"jsxRuntime": "transparent"
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
"json": {
|
|
258
|
-
"parser": {
|
|
259
|
-
"allowComments": true,
|
|
260
|
-
"allowTrailingCommas": true
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
|
|
264
|
-
"html": {
|
|
265
|
-
"experimentalFullSupportEnabled": true
|
|
282
|
+
"defaultBranch": "main",
|
|
283
|
+
"useIgnoreFile": true
|
|
266
284
|
}
|
|
267
285
|
}
|
|
@@ -1,27 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.
|
|
3
|
-
|
|
4
|
-
"linter": {
|
|
5
|
-
"domains": {
|
|
6
|
-
"react": "recommended"
|
|
7
|
-
},
|
|
8
|
-
"rules": {
|
|
9
|
-
"recommended": true
|
|
10
|
-
}
|
|
11
|
-
},
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
|
|
12
3
|
|
|
13
4
|
"assist": {
|
|
14
5
|
"actions": {
|
|
15
|
-
"recommended": true
|
|
6
|
+
"recommended": true,
|
|
7
|
+
"source": {
|
|
8
|
+
"noDuplicateClasses": "on"
|
|
9
|
+
}
|
|
16
10
|
}
|
|
17
11
|
},
|
|
18
12
|
|
|
19
|
-
"vcs": {
|
|
20
|
-
"clientKind": "git",
|
|
21
|
-
"useIgnoreFile": true,
|
|
22
|
-
"defaultBranch": "main"
|
|
23
|
-
},
|
|
24
|
-
|
|
25
13
|
"files": {
|
|
26
14
|
"includes": ["**", "!!**/dist"]
|
|
27
15
|
},
|
|
@@ -39,25 +27,28 @@
|
|
|
39
27
|
"useEditorconfig": true
|
|
40
28
|
},
|
|
41
29
|
|
|
30
|
+
"html": {
|
|
31
|
+
"experimentalFullSupportEnabled": true
|
|
32
|
+
},
|
|
33
|
+
|
|
42
34
|
"javascript": {
|
|
35
|
+
"experimentalEmbeddedSnippetsEnabled": true,
|
|
36
|
+
"globals": [],
|
|
37
|
+
"jsxRuntime": "transparent",
|
|
43
38
|
"formatter": {
|
|
44
39
|
"arrowParentheses": "always",
|
|
45
|
-
"jsxQuoteStyle": "
|
|
40
|
+
"jsxQuoteStyle": "double",
|
|
46
41
|
"operatorLinebreak": "before",
|
|
47
42
|
"quoteProperties": "asNeeded",
|
|
48
43
|
"quoteStyle": "single",
|
|
49
44
|
"semicolons": "asNeeded",
|
|
50
45
|
"trailingCommas": "es5"
|
|
51
46
|
},
|
|
52
|
-
|
|
53
47
|
"parser": {
|
|
54
48
|
"gritMetavariables": false,
|
|
55
49
|
"jsxEverywhere": true,
|
|
56
50
|
"unsafeParameterDecoratorsEnabled": false
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
"globals": [],
|
|
60
|
-
"jsxRuntime": "transparent"
|
|
51
|
+
}
|
|
61
52
|
},
|
|
62
53
|
|
|
63
54
|
"json": {
|
|
@@ -67,7 +58,18 @@
|
|
|
67
58
|
}
|
|
68
59
|
},
|
|
69
60
|
|
|
70
|
-
"
|
|
71
|
-
"
|
|
61
|
+
"linter": {
|
|
62
|
+
"domains": {
|
|
63
|
+
"react": "recommended"
|
|
64
|
+
},
|
|
65
|
+
"rules": {
|
|
66
|
+
"recommended": true
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
"vcs": {
|
|
71
|
+
"clientKind": "git",
|
|
72
|
+
"defaultBranch": "main",
|
|
73
|
+
"useIgnoreFile": true
|
|
72
74
|
}
|
|
73
75
|
}
|
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
|
|
3
|
+
|
|
4
|
+
"assist": {
|
|
5
|
+
"actions": {
|
|
6
|
+
"recommended": true,
|
|
7
|
+
"source": {
|
|
8
|
+
"noDuplicateClasses": "on"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"files": {
|
|
14
|
+
"includes": ["**", "!!**/dist"]
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
"formatter": {
|
|
18
|
+
"attributePosition": "auto",
|
|
19
|
+
"bracketSameLine": false,
|
|
20
|
+
"bracketSpacing": true,
|
|
21
|
+
"expand": "auto",
|
|
22
|
+
"formatWithErrors": false,
|
|
23
|
+
"indentStyle": "space",
|
|
24
|
+
"indentWidth": 2,
|
|
25
|
+
"lineEnding": "lf",
|
|
26
|
+
"lineWidth": 80,
|
|
27
|
+
"useEditorconfig": true
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
"html": {
|
|
31
|
+
"experimentalFullSupportEnabled": true
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
"javascript": {
|
|
35
|
+
"experimentalEmbeddedSnippetsEnabled": true,
|
|
36
|
+
"globals": [],
|
|
37
|
+
"jsxRuntime": "transparent",
|
|
38
|
+
"formatter": {
|
|
39
|
+
"arrowParentheses": "always",
|
|
40
|
+
"jsxQuoteStyle": "double",
|
|
41
|
+
"operatorLinebreak": "before",
|
|
42
|
+
"quoteProperties": "asNeeded",
|
|
43
|
+
"quoteStyle": "single",
|
|
44
|
+
"semicolons": "asNeeded",
|
|
45
|
+
"trailingCommas": "es5"
|
|
46
|
+
},
|
|
47
|
+
"parser": {
|
|
48
|
+
"gritMetavariables": false,
|
|
49
|
+
"jsxEverywhere": true,
|
|
50
|
+
"unsafeParameterDecoratorsEnabled": false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
"json": {
|
|
55
|
+
"parser": {
|
|
56
|
+
"allowComments": true,
|
|
57
|
+
"allowTrailingCommas": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
3
60
|
|
|
4
61
|
"linter": {
|
|
5
62
|
"rules": {
|
|
@@ -17,8 +74,11 @@
|
|
|
17
74
|
"noExcessiveNestedTestSuites": "warn",
|
|
18
75
|
"noForEach": "warn",
|
|
19
76
|
"noImplicitCoercions": "warn",
|
|
77
|
+
"noUselessCatchBinding": "warn",
|
|
20
78
|
"noUselessStringConcat": "warn",
|
|
79
|
+
"noUselessUndefined": "warn",
|
|
21
80
|
"noVoid": "warn",
|
|
81
|
+
"useMaxParams": "warn",
|
|
22
82
|
"useSimplifiedLogicExpression": "warn",
|
|
23
83
|
"useWhile": "warn"
|
|
24
84
|
},
|
|
@@ -30,6 +90,7 @@
|
|
|
30
90
|
"noReactPropAssignments": "warn",
|
|
31
91
|
"noUndeclaredDependencies": "warn",
|
|
32
92
|
"noUndeclaredVariables": "warn",
|
|
93
|
+
"noUnresolvedImports": "warn",
|
|
33
94
|
"useImportExtensions": "off",
|
|
34
95
|
"useJsonImportAttributes": "warn",
|
|
35
96
|
"useSingleJsDocAsterisk": "warn",
|
|
@@ -37,23 +98,20 @@
|
|
|
37
98
|
},
|
|
38
99
|
"nursery": {
|
|
39
100
|
"noAmbiguousAnchorText": "warn",
|
|
101
|
+
"noConditionalExpect": "warn",
|
|
40
102
|
"noContinue": "warn",
|
|
41
|
-
"noDeprecatedImports": "warn",
|
|
42
103
|
"noDivRegex": "warn",
|
|
43
104
|
"noDuplicateAttributes": "warn",
|
|
44
105
|
"noDuplicatedSpreadProps": "warn",
|
|
45
106
|
"noDuplicateEnumValueNames": "warn",
|
|
46
107
|
"noDuplicateEnumValues": "warn",
|
|
47
|
-
"noEmptySource": "warn",
|
|
48
108
|
"noEqualsToNull": "warn",
|
|
49
109
|
"noExcessiveClassesPerFile": "warn",
|
|
50
110
|
"noExcessiveLinesPerFile": "warn",
|
|
51
111
|
"noFloatingClasses": "warn",
|
|
52
112
|
"noFloatingPromises": "warn",
|
|
53
113
|
"noForIn": "warn",
|
|
54
|
-
"noImportCycles": "warn",
|
|
55
114
|
"noIncrementDecrement": "warn",
|
|
56
|
-
"noJsxLiterals": "warn",
|
|
57
115
|
"noJsxPropsBind": "error",
|
|
58
116
|
"noLeakedRender": "error",
|
|
59
117
|
"noMisusedPromises": "error",
|
|
@@ -61,8 +119,17 @@
|
|
|
61
119
|
"noMultiStr": "error",
|
|
62
120
|
"noNestedPromises": "warn",
|
|
63
121
|
"noParametersOnlyUsedInRecursion": "error",
|
|
122
|
+
"noPlaywrightElementHandle": "warn",
|
|
123
|
+
"noPlaywrightEval": "warn",
|
|
124
|
+
"noPlaywrightForceOption": "warn",
|
|
125
|
+
"noPlaywrightMissingAwait": "warn",
|
|
126
|
+
"noPlaywrightNetworkidle": "warn",
|
|
127
|
+
"noPlaywrightPagePause": "warn",
|
|
128
|
+
"noPlaywrightUselessAwait": "warn",
|
|
129
|
+
"noPlaywrightWaitForNavigation": "warn",
|
|
130
|
+
"noPlaywrightWaitForSelector": "warn",
|
|
131
|
+
"noPlaywrightWaitForTimeout": "warn",
|
|
64
132
|
"noProto": "warn",
|
|
65
|
-
"noReactForwardRef": "warn",
|
|
66
133
|
"noRedundantDefaultExport": "warn",
|
|
67
134
|
"noReturnAssign": "warn",
|
|
68
135
|
"noScriptUrl": "warn",
|
|
@@ -72,23 +139,19 @@
|
|
|
72
139
|
"noUndeclaredEnvVars": "warn",
|
|
73
140
|
"noUnknownAttribute": "warn",
|
|
74
141
|
"noUnnecessaryConditions": "warn",
|
|
75
|
-
"noUnresolvedImports": "warn",
|
|
76
|
-
"noUnusedExpressions": "warn",
|
|
77
|
-
"noUselessCatchBinding": "warn",
|
|
78
142
|
"noUselessReturn": "warn",
|
|
79
|
-
"noUselessUndefined": "warn",
|
|
80
143
|
"useArraySortCompare": "warn",
|
|
81
144
|
"useAwaitThenable": "warn",
|
|
82
|
-
"useConsistentArrowReturn": "warn",
|
|
83
145
|
"useConsistentEnumValueType": "warn",
|
|
84
146
|
"useConsistentMethodSignatures": "warn",
|
|
85
147
|
"useDestructuring": "warn",
|
|
86
148
|
"useErrorCause": "warn",
|
|
87
149
|
"useExhaustiveSwitchCases": "warn",
|
|
150
|
+
"useExpect": "warn",
|
|
88
151
|
"useExplicitType": "off",
|
|
89
152
|
"useFind": "warn",
|
|
90
153
|
"useGlobalThis": "warn",
|
|
91
|
-
"
|
|
154
|
+
"usePlaywrightValidDescribeCallback": "warn",
|
|
92
155
|
"useRegexpExec": "warn",
|
|
93
156
|
"useSpread": "warn"
|
|
94
157
|
},
|
|
@@ -111,6 +174,7 @@
|
|
|
111
174
|
"noExportedImports": "warn",
|
|
112
175
|
"noImplicitBoolean": "warn",
|
|
113
176
|
"noInferrableTypes": "warn",
|
|
177
|
+
"noJsxLiterals": "warn",
|
|
114
178
|
"noMagicNumbers": "warn",
|
|
115
179
|
"noNamespace": "warn",
|
|
116
180
|
"noNegationElse": "warn",
|
|
@@ -129,22 +193,11 @@
|
|
|
129
193
|
"useCollapsedElseIf": "warn",
|
|
130
194
|
"useCollapsedIf": "warn",
|
|
131
195
|
"useComponentExportOnlyModules": "warn",
|
|
132
|
-
"
|
|
133
|
-
"level": "warn",
|
|
134
|
-
"options": {
|
|
135
|
-
"syntax": "shorthand"
|
|
136
|
-
}
|
|
137
|
-
},
|
|
196
|
+
"useConsistentArrowReturn": "warn",
|
|
138
197
|
"useConsistentBuiltinInstantiation": "warn",
|
|
139
198
|
"useConsistentCurlyBraces": "warn",
|
|
140
199
|
"useConsistentMemberAccessibility": "warn",
|
|
141
200
|
"useConsistentObjectDefinitions": "warn",
|
|
142
|
-
"useConsistentTypeDefinitions": {
|
|
143
|
-
"level": "warn",
|
|
144
|
-
"options": {
|
|
145
|
-
"style": "type"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
201
|
"useDefaultParameterLast": "warn",
|
|
149
202
|
"useDefaultSwitchClause": "warn",
|
|
150
203
|
"useEnumInitializers": "warn",
|
|
@@ -154,13 +207,6 @@
|
|
|
154
207
|
"useForOf": "warn",
|
|
155
208
|
"useFragmentSyntax": "warn",
|
|
156
209
|
"useGroupedAccessorPairs": "warn",
|
|
157
|
-
"useNamingConvention": {
|
|
158
|
-
"level": "warn",
|
|
159
|
-
"options": {
|
|
160
|
-
"strictCase": true,
|
|
161
|
-
"requireAscii": true
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
210
|
"useNumberNamespace": "warn",
|
|
165
211
|
"useNumericSeparators": "warn",
|
|
166
212
|
"useObjectSpread": "warn",
|
|
@@ -173,18 +219,43 @@
|
|
|
173
219
|
"useThrowNewError": "warn",
|
|
174
220
|
"useThrowOnlyError": "warn",
|
|
175
221
|
"useTrimStartEnd": "warn",
|
|
176
|
-
"useUnifiedTypeSignatures": "warn"
|
|
222
|
+
"useUnifiedTypeSignatures": "warn",
|
|
223
|
+
"useConsistentArrayType": {
|
|
224
|
+
"level": "warn",
|
|
225
|
+
"options": {
|
|
226
|
+
"syntax": "shorthand"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"useConsistentTypeDefinitions": {
|
|
230
|
+
"level": "warn",
|
|
231
|
+
"options": {
|
|
232
|
+
"style": "type"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"useNamingConvention": {
|
|
236
|
+
"level": "warn",
|
|
237
|
+
"options": {
|
|
238
|
+
"requireAscii": true,
|
|
239
|
+
"strictCase": true
|
|
240
|
+
}
|
|
241
|
+
}
|
|
177
242
|
},
|
|
178
243
|
"suspicious": {
|
|
179
244
|
"noAlert": "warn",
|
|
180
245
|
"noBitwiseOperators": "warn",
|
|
181
246
|
"noConsole": "warn",
|
|
182
247
|
"noConstantBinaryExpressions": "warn",
|
|
248
|
+
"noDeprecatedImports": "warn",
|
|
249
|
+
"noDuplicateDependencies": "warn",
|
|
183
250
|
"noEmptyBlockStatements": "warn",
|
|
251
|
+
"noEmptySource": "warn",
|
|
184
252
|
"noEvolvingTypes": "warn",
|
|
253
|
+
"noImportCycles": "warn",
|
|
185
254
|
"noMisplacedAssertion": "warn",
|
|
255
|
+
"noReactForwardRef": "warn",
|
|
186
256
|
"noSkippedTests": "warn",
|
|
187
257
|
"noUnassignedVariables": "warn",
|
|
258
|
+
"noUnusedExpressions": "warn",
|
|
188
259
|
"noVar": "error",
|
|
189
260
|
"useAwait": "warn",
|
|
190
261
|
"useErrorMessage": "warn",
|
|
@@ -196,64 +267,9 @@
|
|
|
196
267
|
}
|
|
197
268
|
},
|
|
198
269
|
|
|
199
|
-
"assist": {
|
|
200
|
-
"actions": {
|
|
201
|
-
"recommended": true
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
|
|
205
270
|
"vcs": {
|
|
206
271
|
"clientKind": "git",
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
"files": {
|
|
212
|
-
"includes": ["**", "!!**/dist"]
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
"formatter": {
|
|
216
|
-
"attributePosition": "auto",
|
|
217
|
-
"bracketSameLine": false,
|
|
218
|
-
"bracketSpacing": true,
|
|
219
|
-
"expand": "auto",
|
|
220
|
-
"formatWithErrors": false,
|
|
221
|
-
"indentStyle": "space",
|
|
222
|
-
"indentWidth": 2,
|
|
223
|
-
"lineEnding": "lf",
|
|
224
|
-
"lineWidth": 80,
|
|
225
|
-
"useEditorconfig": true
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
"javascript": {
|
|
229
|
-
"formatter": {
|
|
230
|
-
"arrowParentheses": "always",
|
|
231
|
-
"jsxQuoteStyle": "single",
|
|
232
|
-
"operatorLinebreak": "before",
|
|
233
|
-
"quoteProperties": "asNeeded",
|
|
234
|
-
"quoteStyle": "single",
|
|
235
|
-
"semicolons": "asNeeded",
|
|
236
|
-
"trailingCommas": "es5"
|
|
237
|
-
},
|
|
238
|
-
|
|
239
|
-
"parser": {
|
|
240
|
-
"gritMetavariables": false,
|
|
241
|
-
"jsxEverywhere": true,
|
|
242
|
-
"unsafeParameterDecoratorsEnabled": false
|
|
243
|
-
},
|
|
244
|
-
|
|
245
|
-
"globals": [],
|
|
246
|
-
"jsxRuntime": "transparent"
|
|
247
|
-
},
|
|
248
|
-
|
|
249
|
-
"json": {
|
|
250
|
-
"parser": {
|
|
251
|
-
"allowComments": true,
|
|
252
|
-
"allowTrailingCommas": true
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
|
|
256
|
-
"html": {
|
|
257
|
-
"experimentalFullSupportEnabled": true
|
|
272
|
+
"defaultBranch": "main",
|
|
273
|
+
"useIgnoreFile": true
|
|
258
274
|
}
|
|
259
275
|
}
|
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.
|
|
3
|
-
|
|
4
|
-
"linter": {
|
|
5
|
-
"rules": {
|
|
6
|
-
"recommended": true
|
|
7
|
-
}
|
|
8
|
-
},
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.4/schema.json",
|
|
9
3
|
|
|
10
4
|
"assist": {
|
|
11
5
|
"actions": {
|
|
12
|
-
"recommended": true
|
|
6
|
+
"recommended": true,
|
|
7
|
+
"source": {
|
|
8
|
+
"noDuplicateClasses": "on"
|
|
9
|
+
}
|
|
13
10
|
}
|
|
14
11
|
},
|
|
15
12
|
|
|
16
|
-
"vcs": {
|
|
17
|
-
"clientKind": "git",
|
|
18
|
-
"useIgnoreFile": true,
|
|
19
|
-
"defaultBranch": "main"
|
|
20
|
-
},
|
|
21
|
-
|
|
22
13
|
"files": {
|
|
23
14
|
"includes": ["**", "!!**/dist"]
|
|
24
15
|
},
|
|
@@ -36,25 +27,28 @@
|
|
|
36
27
|
"useEditorconfig": true
|
|
37
28
|
},
|
|
38
29
|
|
|
30
|
+
"html": {
|
|
31
|
+
"experimentalFullSupportEnabled": true
|
|
32
|
+
},
|
|
33
|
+
|
|
39
34
|
"javascript": {
|
|
35
|
+
"experimentalEmbeddedSnippetsEnabled": true,
|
|
36
|
+
"globals": [],
|
|
37
|
+
"jsxRuntime": "transparent",
|
|
40
38
|
"formatter": {
|
|
41
39
|
"arrowParentheses": "always",
|
|
42
|
-
"jsxQuoteStyle": "
|
|
40
|
+
"jsxQuoteStyle": "double",
|
|
43
41
|
"operatorLinebreak": "before",
|
|
44
42
|
"quoteProperties": "asNeeded",
|
|
45
43
|
"quoteStyle": "single",
|
|
46
44
|
"semicolons": "asNeeded",
|
|
47
45
|
"trailingCommas": "es5"
|
|
48
46
|
},
|
|
49
|
-
|
|
50
47
|
"parser": {
|
|
51
48
|
"gritMetavariables": false,
|
|
52
49
|
"jsxEverywhere": true,
|
|
53
50
|
"unsafeParameterDecoratorsEnabled": false
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
"globals": [],
|
|
57
|
-
"jsxRuntime": "transparent"
|
|
51
|
+
}
|
|
58
52
|
},
|
|
59
53
|
|
|
60
54
|
"json": {
|
|
@@ -64,7 +58,15 @@
|
|
|
64
58
|
}
|
|
65
59
|
},
|
|
66
60
|
|
|
67
|
-
"
|
|
68
|
-
"
|
|
61
|
+
"linter": {
|
|
62
|
+
"rules": {
|
|
63
|
+
"recommended": true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
"vcs": {
|
|
68
|
+
"clientKind": "git",
|
|
69
|
+
"defaultBranch": "main",
|
|
70
|
+
"useIgnoreFile": true
|
|
69
71
|
}
|
|
70
72
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@dvashim/biome-config",
|
|
3
|
-
"version": "1.1.13",
|
|
4
2
|
"description": "Shared Biome Configurations",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"name": "@dvashim/biome-config",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"version": "1.2.1",
|
|
7
|
+
"author": {
|
|
8
|
+
"email": "aleksei@dvashim.dev",
|
|
9
|
+
"name": "Aleksei Reznichenko"
|
|
10
|
+
},
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@biomejs/biome": "^2.4.4",
|
|
13
|
+
"@changesets/changelog-github": "^0.5.2",
|
|
14
|
+
"@changesets/cli": "^2.29.8",
|
|
15
|
+
"validate-package-exports": "^0.18.0"
|
|
16
|
+
},
|
|
6
17
|
"exports": {
|
|
7
18
|
".": "./dist/biome.recommended.json",
|
|
8
|
-
"./
|
|
9
|
-
"./react
|
|
19
|
+
"./react-balanced": "./dist/biome.react-balanced.json",
|
|
20
|
+
"./react-recommended": "./dist/biome.react-recommended.json",
|
|
21
|
+
"./react-strict": "./dist/biome.react-strict.json",
|
|
10
22
|
"./react/balanced": "./dist/biome.react-balanced.json",
|
|
23
|
+
"./react/recommended": "./dist/biome.react-recommended.json",
|
|
11
24
|
"./react/strict": "./dist/biome.react-strict.json",
|
|
12
|
-
"./
|
|
13
|
-
"./react-balanced": "./dist/biome.react-balanced.json",
|
|
14
|
-
"./react-strict": "./dist/biome.react-strict.json"
|
|
25
|
+
"./recommended": "./dist/biome.recommended.json"
|
|
15
26
|
},
|
|
16
27
|
"files": [
|
|
17
28
|
"dist"
|
|
@@ -22,28 +33,17 @@
|
|
|
22
33
|
"formatter",
|
|
23
34
|
"config"
|
|
24
35
|
],
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"email": "aleksei@dvashim.dev"
|
|
28
|
-
},
|
|
29
|
-
"license": "MIT",
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@biomejs/biome": "^2.3.15",
|
|
32
|
-
"@changesets/changelog-github": "^0.5.2",
|
|
33
|
-
"@changesets/cli": "^2.29.8",
|
|
34
|
-
"validate-package-exports": "^0.17.0"
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
35
38
|
},
|
|
36
39
|
"repository": {
|
|
37
40
|
"type": "git",
|
|
38
41
|
"url": "https://github.com/dvashim/biome-config.git"
|
|
39
42
|
},
|
|
40
|
-
"publishConfig": {
|
|
41
|
-
"access": "public"
|
|
42
|
-
},
|
|
43
43
|
"scripts": {
|
|
44
|
-
"
|
|
45
|
-
"check:exports": "validate-package-exports --check",
|
|
44
|
+
"changeset": "changeset",
|
|
46
45
|
"check": "pnpm run \"/^check:.*/\"",
|
|
47
|
-
"
|
|
46
|
+
"check:exports": "validate-package-exports --check",
|
|
47
|
+
"check:format": "biome format"
|
|
48
48
|
}
|
|
49
49
|
}
|