@dvashim/biome-config 1.1.13 → 1.2.0
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 +116 -111
- package/dist/biome.react-recommended.json +27 -25
- package/dist/biome.react-strict.json +92 -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.0/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.0/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",
|
|
@@ -43,35 +104,25 @@
|
|
|
43
104
|
"nursery": {
|
|
44
105
|
"noAmbiguousAnchorText": "warn",
|
|
45
106
|
"noContinue": "info",
|
|
46
|
-
"noDeprecatedImports": "warn",
|
|
47
107
|
"noDivRegex": "warn",
|
|
48
108
|
"noDuplicateAttributes": "warn",
|
|
49
109
|
"noDuplicatedSpreadProps": "warn",
|
|
50
110
|
"noDuplicateEnumValueNames": "warn",
|
|
51
111
|
"noDuplicateEnumValues": "warn",
|
|
52
|
-
"noEmptySource": "warn",
|
|
53
112
|
"noEqualsToNull": "warn",
|
|
54
113
|
"noExcessiveClassesPerFile": "warn",
|
|
55
114
|
"noExcessiveLinesPerFile": "warn",
|
|
56
115
|
"noFloatingClasses": "warn",
|
|
57
116
|
"noFloatingPromises": "warn",
|
|
58
117
|
"noForIn": "warn",
|
|
59
|
-
"noImportCycles": "warn",
|
|
60
|
-
"noIncrementDecrement": {
|
|
61
|
-
"level": "warn",
|
|
62
|
-
"options": {
|
|
63
|
-
"allowForLoopAfterthoughts": true
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"noJsxLiterals": "off",
|
|
67
118
|
"noJsxPropsBind": "error",
|
|
68
119
|
"noLeakedRender": "error",
|
|
69
120
|
"noMisusedPromises": "error",
|
|
70
121
|
"noMultiAssign": "error",
|
|
71
122
|
"noMultiStr": "error",
|
|
123
|
+
"noNestedPromises": "warn",
|
|
72
124
|
"noParametersOnlyUsedInRecursion": "error",
|
|
73
125
|
"noProto": "warn",
|
|
74
|
-
"noReactForwardRef": "warn",
|
|
75
126
|
"noRedundantDefaultExport": "warn",
|
|
76
127
|
"noReturnAssign": "warn",
|
|
77
128
|
"noScriptUrl": "warn",
|
|
@@ -81,13 +132,9 @@
|
|
|
81
132
|
"noUndeclaredEnvVars": "warn",
|
|
82
133
|
"noUnknownAttribute": "warn",
|
|
83
134
|
"noUnnecessaryConditions": "warn",
|
|
84
|
-
"
|
|
85
|
-
"noUnusedExpressions": "warn",
|
|
86
|
-
"noUselessCatchBinding": "warn",
|
|
87
|
-
"noUselessUndefined": "warn",
|
|
135
|
+
"noUselessReturn": "info",
|
|
88
136
|
"useArraySortCompare": "warn",
|
|
89
137
|
"useAwaitThenable": "warn",
|
|
90
|
-
"useConsistentArrowReturn": "warn",
|
|
91
138
|
"useConsistentEnumValueType": "warn",
|
|
92
139
|
"useConsistentMethodSignatures": "warn",
|
|
93
140
|
"useDestructuring": "warn",
|
|
@@ -96,9 +143,14 @@
|
|
|
96
143
|
"useExplicitType": "off",
|
|
97
144
|
"useFind": "warn",
|
|
98
145
|
"useGlobalThis": "warn",
|
|
99
|
-
"useMaxParams": "warn",
|
|
100
146
|
"useRegexpExec": "warn",
|
|
101
|
-
"useSpread": "warn"
|
|
147
|
+
"useSpread": "warn",
|
|
148
|
+
"noIncrementDecrement": {
|
|
149
|
+
"level": "warn",
|
|
150
|
+
"options": {
|
|
151
|
+
"allowForLoopAfterthoughts": true
|
|
152
|
+
}
|
|
153
|
+
}
|
|
102
154
|
},
|
|
103
155
|
"performance": {
|
|
104
156
|
"noAwaitInLoops": "warn",
|
|
@@ -119,6 +171,7 @@
|
|
|
119
171
|
"noExportedImports": "warn",
|
|
120
172
|
"noImplicitBoolean": "info",
|
|
121
173
|
"noInferrableTypes": "warn",
|
|
174
|
+
"noJsxLiterals": "off",
|
|
122
175
|
"noMagicNumbers": "off",
|
|
123
176
|
"noNamespace": "warn",
|
|
124
177
|
"noNegationElse": "warn",
|
|
@@ -137,22 +190,11 @@
|
|
|
137
190
|
"useCollapsedElseIf": "warn",
|
|
138
191
|
"useCollapsedIf": "warn",
|
|
139
192
|
"useComponentExportOnlyModules": "warn",
|
|
140
|
-
"
|
|
141
|
-
"level": "warn",
|
|
142
|
-
"options": {
|
|
143
|
-
"syntax": "shorthand"
|
|
144
|
-
}
|
|
145
|
-
},
|
|
193
|
+
"useConsistentArrowReturn": "warn",
|
|
146
194
|
"useConsistentBuiltinInstantiation": "warn",
|
|
147
195
|
"useConsistentCurlyBraces": "warn",
|
|
148
196
|
"useConsistentMemberAccessibility": "warn",
|
|
149
197
|
"useConsistentObjectDefinitions": "warn",
|
|
150
|
-
"useConsistentTypeDefinitions": {
|
|
151
|
-
"level": "warn",
|
|
152
|
-
"options": {
|
|
153
|
-
"style": "type"
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
198
|
"useDefaultParameterLast": "warn",
|
|
157
199
|
"useDefaultSwitchClause": "warn",
|
|
158
200
|
"useEnumInitializers": "warn",
|
|
@@ -162,37 +204,55 @@
|
|
|
162
204
|
"useForOf": "warn",
|
|
163
205
|
"useFragmentSyntax": "warn",
|
|
164
206
|
"useGroupedAccessorPairs": "warn",
|
|
165
|
-
"
|
|
207
|
+
"useNumberNamespace": "warn",
|
|
208
|
+
"useNumericSeparators": "warn",
|
|
209
|
+
"useObjectSpread": "warn",
|
|
210
|
+
"useReactFunctionComponents": "warn",
|
|
211
|
+
"useReadonlyClassProperties": "warn",
|
|
212
|
+
"useSelfClosingElements": "warn",
|
|
213
|
+
"useShorthandAssign": "warn",
|
|
214
|
+
"useSingleVarDeclarator": "warn",
|
|
215
|
+
"useSymbolDescription": "warn",
|
|
216
|
+
"useThrowNewError": "warn",
|
|
217
|
+
"useThrowOnlyError": "warn",
|
|
218
|
+
"useTrimStartEnd": "warn",
|
|
219
|
+
"useUnifiedTypeSignatures": "warn",
|
|
220
|
+
"useConsistentArrayType": {
|
|
166
221
|
"level": "warn",
|
|
167
222
|
"options": {
|
|
168
|
-
"
|
|
169
|
-
"requireAscii": true
|
|
223
|
+
"syntax": "shorthand"
|
|
170
224
|
}
|
|
171
225
|
},
|
|
172
|
-
"
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
"
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
226
|
+
"useConsistentTypeDefinitions": {
|
|
227
|
+
"level": "warn",
|
|
228
|
+
"options": {
|
|
229
|
+
"style": "type"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"useNamingConvention": {
|
|
233
|
+
"level": "warn",
|
|
234
|
+
"options": {
|
|
235
|
+
"requireAscii": true,
|
|
236
|
+
"strictCase": false
|
|
237
|
+
}
|
|
238
|
+
}
|
|
185
239
|
},
|
|
186
240
|
"suspicious": {
|
|
187
241
|
"noAlert": "warn",
|
|
188
242
|
"noBitwiseOperators": "warn",
|
|
189
243
|
"noConsole": "warn",
|
|
190
244
|
"noConstantBinaryExpressions": "warn",
|
|
245
|
+
"noDeprecatedImports": "warn",
|
|
246
|
+
"noDuplicateDependencies": "warn",
|
|
191
247
|
"noEmptyBlockStatements": "warn",
|
|
248
|
+
"noEmptySource": "warn",
|
|
192
249
|
"noEvolvingTypes": "warn",
|
|
250
|
+
"noImportCycles": "warn",
|
|
193
251
|
"noMisplacedAssertion": "warn",
|
|
252
|
+
"noReactForwardRef": "warn",
|
|
194
253
|
"noSkippedTests": "warn",
|
|
195
254
|
"noUnassignedVariables": "warn",
|
|
255
|
+
"noUnusedExpressions": "warn",
|
|
196
256
|
"noVar": "error",
|
|
197
257
|
"useAwait": "warn",
|
|
198
258
|
"useErrorMessage": "warn",
|
|
@@ -204,64 +264,9 @@
|
|
|
204
264
|
}
|
|
205
265
|
},
|
|
206
266
|
|
|
207
|
-
"assist": {
|
|
208
|
-
"actions": {
|
|
209
|
-
"recommended": true
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
|
|
213
267
|
"vcs": {
|
|
214
268
|
"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
|
|
269
|
+
"defaultBranch": "main",
|
|
270
|
+
"useIgnoreFile": true
|
|
266
271
|
}
|
|
267
272
|
}
|
|
@@ -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.0/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.0/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",
|
|
@@ -38,22 +99,18 @@
|
|
|
38
99
|
"nursery": {
|
|
39
100
|
"noAmbiguousAnchorText": "warn",
|
|
40
101
|
"noContinue": "warn",
|
|
41
|
-
"noDeprecatedImports": "warn",
|
|
42
102
|
"noDivRegex": "warn",
|
|
43
103
|
"noDuplicateAttributes": "warn",
|
|
44
104
|
"noDuplicatedSpreadProps": "warn",
|
|
45
105
|
"noDuplicateEnumValueNames": "warn",
|
|
46
106
|
"noDuplicateEnumValues": "warn",
|
|
47
|
-
"noEmptySource": "warn",
|
|
48
107
|
"noEqualsToNull": "warn",
|
|
49
108
|
"noExcessiveClassesPerFile": "warn",
|
|
50
109
|
"noExcessiveLinesPerFile": "warn",
|
|
51
110
|
"noFloatingClasses": "warn",
|
|
52
111
|
"noFloatingPromises": "warn",
|
|
53
112
|
"noForIn": "warn",
|
|
54
|
-
"noImportCycles": "warn",
|
|
55
113
|
"noIncrementDecrement": "warn",
|
|
56
|
-
"noJsxLiterals": "warn",
|
|
57
114
|
"noJsxPropsBind": "error",
|
|
58
115
|
"noLeakedRender": "error",
|
|
59
116
|
"noMisusedPromises": "error",
|
|
@@ -62,7 +119,6 @@
|
|
|
62
119
|
"noNestedPromises": "warn",
|
|
63
120
|
"noParametersOnlyUsedInRecursion": "error",
|
|
64
121
|
"noProto": "warn",
|
|
65
|
-
"noReactForwardRef": "warn",
|
|
66
122
|
"noRedundantDefaultExport": "warn",
|
|
67
123
|
"noReturnAssign": "warn",
|
|
68
124
|
"noScriptUrl": "warn",
|
|
@@ -72,14 +128,9 @@
|
|
|
72
128
|
"noUndeclaredEnvVars": "warn",
|
|
73
129
|
"noUnknownAttribute": "warn",
|
|
74
130
|
"noUnnecessaryConditions": "warn",
|
|
75
|
-
"noUnresolvedImports": "warn",
|
|
76
|
-
"noUnusedExpressions": "warn",
|
|
77
|
-
"noUselessCatchBinding": "warn",
|
|
78
131
|
"noUselessReturn": "warn",
|
|
79
|
-
"noUselessUndefined": "warn",
|
|
80
132
|
"useArraySortCompare": "warn",
|
|
81
133
|
"useAwaitThenable": "warn",
|
|
82
|
-
"useConsistentArrowReturn": "warn",
|
|
83
134
|
"useConsistentEnumValueType": "warn",
|
|
84
135
|
"useConsistentMethodSignatures": "warn",
|
|
85
136
|
"useDestructuring": "warn",
|
|
@@ -88,7 +139,6 @@
|
|
|
88
139
|
"useExplicitType": "off",
|
|
89
140
|
"useFind": "warn",
|
|
90
141
|
"useGlobalThis": "warn",
|
|
91
|
-
"useMaxParams": "warn",
|
|
92
142
|
"useRegexpExec": "warn",
|
|
93
143
|
"useSpread": "warn"
|
|
94
144
|
},
|
|
@@ -111,6 +161,7 @@
|
|
|
111
161
|
"noExportedImports": "warn",
|
|
112
162
|
"noImplicitBoolean": "warn",
|
|
113
163
|
"noInferrableTypes": "warn",
|
|
164
|
+
"noJsxLiterals": "warn",
|
|
114
165
|
"noMagicNumbers": "warn",
|
|
115
166
|
"noNamespace": "warn",
|
|
116
167
|
"noNegationElse": "warn",
|
|
@@ -129,22 +180,11 @@
|
|
|
129
180
|
"useCollapsedElseIf": "warn",
|
|
130
181
|
"useCollapsedIf": "warn",
|
|
131
182
|
"useComponentExportOnlyModules": "warn",
|
|
132
|
-
"
|
|
133
|
-
"level": "warn",
|
|
134
|
-
"options": {
|
|
135
|
-
"syntax": "shorthand"
|
|
136
|
-
}
|
|
137
|
-
},
|
|
183
|
+
"useConsistentArrowReturn": "warn",
|
|
138
184
|
"useConsistentBuiltinInstantiation": "warn",
|
|
139
185
|
"useConsistentCurlyBraces": "warn",
|
|
140
186
|
"useConsistentMemberAccessibility": "warn",
|
|
141
187
|
"useConsistentObjectDefinitions": "warn",
|
|
142
|
-
"useConsistentTypeDefinitions": {
|
|
143
|
-
"level": "warn",
|
|
144
|
-
"options": {
|
|
145
|
-
"style": "type"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
188
|
"useDefaultParameterLast": "warn",
|
|
149
189
|
"useDefaultSwitchClause": "warn",
|
|
150
190
|
"useEnumInitializers": "warn",
|
|
@@ -154,13 +194,6 @@
|
|
|
154
194
|
"useForOf": "warn",
|
|
155
195
|
"useFragmentSyntax": "warn",
|
|
156
196
|
"useGroupedAccessorPairs": "warn",
|
|
157
|
-
"useNamingConvention": {
|
|
158
|
-
"level": "warn",
|
|
159
|
-
"options": {
|
|
160
|
-
"strictCase": true,
|
|
161
|
-
"requireAscii": true
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
197
|
"useNumberNamespace": "warn",
|
|
165
198
|
"useNumericSeparators": "warn",
|
|
166
199
|
"useObjectSpread": "warn",
|
|
@@ -173,18 +206,43 @@
|
|
|
173
206
|
"useThrowNewError": "warn",
|
|
174
207
|
"useThrowOnlyError": "warn",
|
|
175
208
|
"useTrimStartEnd": "warn",
|
|
176
|
-
"useUnifiedTypeSignatures": "warn"
|
|
209
|
+
"useUnifiedTypeSignatures": "warn",
|
|
210
|
+
"useConsistentArrayType": {
|
|
211
|
+
"level": "warn",
|
|
212
|
+
"options": {
|
|
213
|
+
"syntax": "shorthand"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"useConsistentTypeDefinitions": {
|
|
217
|
+
"level": "warn",
|
|
218
|
+
"options": {
|
|
219
|
+
"style": "type"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"useNamingConvention": {
|
|
223
|
+
"level": "warn",
|
|
224
|
+
"options": {
|
|
225
|
+
"requireAscii": true,
|
|
226
|
+
"strictCase": true
|
|
227
|
+
}
|
|
228
|
+
}
|
|
177
229
|
},
|
|
178
230
|
"suspicious": {
|
|
179
231
|
"noAlert": "warn",
|
|
180
232
|
"noBitwiseOperators": "warn",
|
|
181
233
|
"noConsole": "warn",
|
|
182
234
|
"noConstantBinaryExpressions": "warn",
|
|
235
|
+
"noDeprecatedImports": "warn",
|
|
236
|
+
"noDuplicateDependencies": "warn",
|
|
183
237
|
"noEmptyBlockStatements": "warn",
|
|
238
|
+
"noEmptySource": "warn",
|
|
184
239
|
"noEvolvingTypes": "warn",
|
|
240
|
+
"noImportCycles": "warn",
|
|
185
241
|
"noMisplacedAssertion": "warn",
|
|
242
|
+
"noReactForwardRef": "warn",
|
|
186
243
|
"noSkippedTests": "warn",
|
|
187
244
|
"noUnassignedVariables": "warn",
|
|
245
|
+
"noUnusedExpressions": "warn",
|
|
188
246
|
"noVar": "error",
|
|
189
247
|
"useAwait": "warn",
|
|
190
248
|
"useErrorMessage": "warn",
|
|
@@ -196,64 +254,9 @@
|
|
|
196
254
|
}
|
|
197
255
|
},
|
|
198
256
|
|
|
199
|
-
"assist": {
|
|
200
|
-
"actions": {
|
|
201
|
-
"recommended": true
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
|
|
205
257
|
"vcs": {
|
|
206
258
|
"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
|
|
259
|
+
"defaultBranch": "main",
|
|
260
|
+
"useIgnoreFile": true
|
|
258
261
|
}
|
|
259
262
|
}
|
|
@@ -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.0/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.0",
|
|
7
|
+
"author": {
|
|
8
|
+
"email": "aleksei@dvashim.dev",
|
|
9
|
+
"name": "Aleksei Reznichenko"
|
|
10
|
+
},
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@biomejs/biome": "^2.4.0",
|
|
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
|
}
|