@dvashim/biome-config 1.9.0 → 1.10.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.
@@ -1,6 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.15/schema.json",
3
-
2
+ "$schema": "https://biomejs.dev/schemas/2.5.1/schema.json",
4
3
  "assist": {
5
4
  "actions": {
6
5
  "recommended": true,
@@ -9,11 +8,9 @@
9
8
  }
10
9
  }
11
10
  },
12
-
13
11
  "files": {
14
12
  "includes": ["**", "!!**/dist"]
15
13
  },
16
-
17
14
  "formatter": {
18
15
  "attributePosition": "auto",
19
16
  "bracketSameLine": false,
@@ -26,11 +23,9 @@
26
23
  "lineWidth": 80,
27
24
  "useEditorconfig": true
28
25
  },
29
-
30
26
  "html": {
31
27
  "experimentalFullSupportEnabled": true
32
28
  },
33
-
34
29
  "javascript": {
35
30
  "experimentalEmbeddedSnippetsEnabled": true,
36
31
  "globals": [],
@@ -50,17 +45,17 @@
50
45
  "unsafeParameterDecoratorsEnabled": false
51
46
  }
52
47
  },
53
-
54
48
  "json": {
55
49
  "parser": {
56
50
  "allowComments": true,
57
51
  "allowTrailingCommas": true
58
52
  }
59
53
  },
60
-
61
54
  "linter": {
62
55
  "rules": {
63
56
  "a11y": {
57
+ "noAmbiguousAnchorText": "warn",
58
+ "noNoninteractiveElementInteractions": "warn",
64
59
  "noNoninteractiveElementToInteractiveRole": "off",
65
60
  "noStaticElementInteractions": "off",
66
61
  "useButtonType": "off",
@@ -69,71 +64,69 @@
69
64
  "useSemanticElements": "off"
70
65
  },
71
66
  "complexity": {
67
+ "noDivRegex": "warn",
72
68
  "noExcessiveCognitiveComplexity": "warn",
73
69
  "noExcessiveLinesPerFunction": "warn",
74
70
  "noExcessiveNestedTestSuites": "warn",
75
71
  "noForEach": "warn",
76
72
  "noImplicitCoercions": "warn",
73
+ "noRedundantDefaultExport": "warn",
77
74
  "noUselessCatchBinding": "warn",
75
+ "noUselessReturn": "warn",
78
76
  "noUselessStringConcat": "warn",
79
77
  "noUselessUndefined": "warn",
80
78
  "noVoid": "warn",
79
+ "useArrayFind": "warn",
81
80
  "useMaxParams": "warn",
82
81
  "useSimplifiedLogicExpression": "warn",
83
82
  "useWhile": "warn"
84
83
  },
85
84
  "correctness": {
85
+ "noBeforeInteractiveScriptOutsideDocument": "warn",
86
+ "noChildrenProp": "warn",
87
+ "noDuplicateAttributes": "warn",
88
+ "noDuplicateEnumValueNames": "warn",
86
89
  "noGlobalDirnameFilename": "warn",
87
90
  "noNestedComponentDefinitions": "warn",
91
+ "noNextAsyncClientComponent": "warn",
88
92
  "noNodejsModules": "warn",
93
+ "noPrivateImports": "warn",
89
94
  "noProcessGlobal": "warn",
90
95
  "noReactPropAssignments": "warn",
96
+ "noRenderReturnValue": "warn",
97
+ "noRestrictedElements": "warn",
91
98
  "noUndeclaredDependencies": "warn",
92
99
  "noUndeclaredVariables": "warn",
93
100
  "noUnresolvedImports": "off",
101
+ "noUnusedInstantiation": "warn",
102
+ "useExhaustiveDependencies": "warn",
103
+ "useHookAtTopLevel": "warn",
94
104
  "useImportExtensions": "off",
105
+ "useInlineScriptId": "warn",
95
106
  "useJsonImportAttributes": "warn",
107
+ "useJsxKeyInIterable": "warn",
96
108
  "useSingleJsDocAsterisk": "warn",
97
109
  "useUniqueElementIds": "warn"
98
110
  },
99
111
  "nursery": {
100
- "noAmbiguousAnchorText": "warn",
101
112
  "noBaseToString": "warn",
102
113
  "noComponentHookFactories": "warn",
103
114
  "noConditionalExpect": "warn",
104
- "noContinue": "warn",
105
- "noDivRegex": "warn",
106
115
  "noDrizzleDeleteWithoutWhere": "warn",
107
116
  "noDrizzleUpdateWithoutWhere": "warn",
108
- "noDuplicateAttributes": "warn",
109
- "noDuplicatedSpreadProps": "warn",
110
- "noDuplicateEnumValueNames": "warn",
111
- "noDuplicateEnumValues": "warn",
112
117
  "noDuplicateSelectors": "warn",
113
118
  "noEmptyObjectKeys": "warn",
114
- "noEqualsToNull": "warn",
115
- "noExcessiveClassesPerFile": "warn",
116
- "noExcessiveLinesPerFile": "warn",
117
119
  "noExcessiveNestedCallbacks": "warn",
118
120
  "noExcessiveSelectorClasses": "warn",
119
- "noFloatingClasses": "warn",
120
121
  "noFloatingPromises": "warn",
121
- "noForIn": "warn",
122
122
  "noIdenticalTestTitle": "warn",
123
123
  "noImpliedEval": "warn",
124
- "noIncrementDecrement": "warn",
125
124
  "noInlineStyles": "warn",
126
125
  "noJsxLeakedDollar": "warn",
127
126
  "noJsxNamespace": "warn",
128
- "noJsxPropsBind": "error",
129
- "noLeakedRender": "error",
130
127
  "noLoopFunc": "warn",
131
128
  "noMisleadingReturnType": "warn",
132
129
  "noMisusedPromises": "error",
133
- "noMultiAssign": "error",
134
- "noMultiStr": "error",
135
- "noNestedPromises": "warn",
136
- "noParametersOnlyUsedInRecursion": "error",
137
130
  "noPlaywrightElementHandle": "warn",
138
131
  "noPlaywrightEval": "warn",
139
132
  "noPlaywrightForceOption": "warn",
@@ -144,53 +137,43 @@
144
137
  "noPlaywrightWaitForNavigation": "warn",
145
138
  "noPlaywrightWaitForSelector": "warn",
146
139
  "noPlaywrightWaitForTimeout": "warn",
147
- "noProto": "warn",
140
+ "noReactNativeDeepImports": "warn",
141
+ "noReactNativeLiteralColors": "warn",
142
+ "noReactNativeRawText": "warn",
148
143
  "noReactStringRefs": "warn",
149
- "noRedundantDefaultExport": "warn",
150
- "noReturnAssign": "warn",
151
- "noScriptUrl": "warn",
152
- "noShadow": "warn",
153
- "noSyncScripts": "warn",
154
- "noTernary": "off",
144
+ "noRestrictedDependencies": "warn",
155
145
  "noTopLevelLiterals": "warn",
156
- "noUndeclaredEnvVars": "warn",
157
- "noUnknownAttribute": "warn",
158
- "noUnnecessaryConditions": "warn",
146
+ "noUndeclaredClasses": "warn",
159
147
  "noUnnecessaryTemplateExpression": "warn",
160
148
  "noUnsafePlusOperands": "warn",
161
149
  "noUntrustedLicenses": "warn",
162
- "noUselessReturn": "warn",
150
+ "noUnusedClasses": "warn",
163
151
  "noUselessTypeConversion": "warn",
164
152
  "useArraySome": "warn",
165
- "useArraySortCompare": "warn",
166
153
  "useAwaitThenable": "warn",
167
154
  "useBaseline": "warn",
168
- "useConsistentEnumValueType": "warn",
169
- "useConsistentMethodSignatures": "warn",
170
155
  "useConsistentTestIt": "warn",
171
- "useDestructuring": "warn",
172
156
  "useDisposables": "warn",
173
157
  "useDomNodeTextContent": "warn",
174
158
  "useDomQuerySelector": "warn",
175
- "useErrorCause": "warn",
176
159
  "useExhaustiveSwitchCases": "warn",
177
160
  "useExpect": "warn",
178
161
  "useExplicitReturnType": "warn",
179
162
  "useExplicitType": "off",
180
- "useFind": "warn",
181
- "useGlobalThis": "warn",
182
163
  "useIframeSandbox": "warn",
183
164
  "useImportsFirst": "warn",
165
+ "useIncludes": "warn",
184
166
  "useMathMinMax": "warn",
185
167
  "useNamedCaptureGroup": "warn",
186
168
  "useNullishCoalescing": "warn",
187
169
  "usePlaywrightValidDescribeCallback": "warn",
188
170
  "useReactAsyncServerFunction": "warn",
171
+ "useReactFunctionComponentDefinition": "warn",
172
+ "useReactNativePlatformComponents": "warn",
189
173
  "useReduceTypeParameter": "warn",
190
174
  "useRegexpExec": "warn",
191
175
  "useRegexpTest": "warn",
192
176
  "useSortedClasses": "warn",
193
- "useSpread": "warn",
194
177
  "useStringStartsEndsWith": "warn",
195
178
  "useTestHooksInOrder": "warn",
196
179
  "useTestHooksOnTop": "warn",
@@ -202,33 +185,54 @@
202
185
  "noAwaitInLoops": "warn",
203
186
  "noBarrelFile": "warn",
204
187
  "noDelete": "warn",
188
+ "noImgElement": "warn",
189
+ "noJsxPropsBind": "error",
205
190
  "noNamespaceImport": "warn",
206
191
  "noReExportAll": "warn",
192
+ "noSyncScripts": "warn",
193
+ "noUnwantedPolyfillio": "warn",
194
+ "useGoogleFontPreconnect": "warn",
207
195
  "useTopLevelRegex": "warn"
208
196
  },
209
197
  "security": {
198
+ "noDangerouslySetInnerHtml": "warn",
199
+ "noDangerouslySetInnerHtmlWithChildren": "warn",
200
+ "noScriptUrl": "warn",
210
201
  "noSecrets": "warn"
211
202
  },
212
203
  "style": {
213
204
  "noCommonJs": "warn",
205
+ "noContinue": "warn",
214
206
  "noDefaultExport": "warn",
215
207
  "noDoneCallback": "warn",
216
208
  "noEnum": "warn",
209
+ "noExcessiveClassesPerFile": "warn",
210
+ "noExcessiveLinesPerFile": "warn",
217
211
  "noExportedImports": "warn",
212
+ "noHeadElement": "warn",
213
+ "noHexColors": "warn",
218
214
  "noImplicitBoolean": "warn",
215
+ "noIncrementDecrement": "warn",
219
216
  "noInferrableTypes": "warn",
220
217
  "noJsxLiterals": "warn",
221
218
  "noMagicNumbers": "warn",
219
+ "noMultiAssign": "error",
220
+ "noMultilineString": "error",
222
221
  "noNamespace": "warn",
223
222
  "noNegationElse": "warn",
224
223
  "noNestedTernary": "warn",
225
224
  "noParameterAssign": "warn",
226
225
  "noParameterProperties": "warn",
227
226
  "noProcessEnv": "warn",
227
+ "noRestrictedGlobals": "warn",
228
+ "noRestrictedImports": "warn",
229
+ "noRestrictedTypes": "warn",
228
230
  "noShoutyConstants": "warn",
229
231
  "noSubstr": "warn",
232
+ "noTernary": "off",
230
233
  "noUnusedTemplateLiteral": "warn",
231
234
  "noUselessElse": "warn",
235
+ "noValueAtRule": "warn",
232
236
  "noYodaExpression": "warn",
233
237
  "useAsConstAssertion": "warn",
234
238
  "useAtIndex": "warn",
@@ -239,17 +243,23 @@
239
243
  "useConsistentArrowReturn": "warn",
240
244
  "useConsistentBuiltinInstantiation": "warn",
241
245
  "useConsistentCurlyBraces": "warn",
246
+ "useConsistentEnumValueType": "warn",
242
247
  "useConsistentMemberAccessibility": "warn",
248
+ "useConsistentMethodSignatures": "warn",
243
249
  "useConsistentObjectDefinitions": "warn",
244
250
  "useDefaultParameterLast": "warn",
245
251
  "useDefaultSwitchClause": "warn",
252
+ "useDestructuring": "warn",
246
253
  "useEnumInitializers": "warn",
254
+ "useErrorCause": "warn",
247
255
  "useExplicitLengthCheck": "warn",
248
256
  "useExportsLast": "warn",
249
257
  "useFilenamingConvention": "warn",
250
258
  "useForOf": "warn",
251
259
  "useFragmentSyntax": "warn",
260
+ "useGlobalThis": "warn",
252
261
  "useGroupedAccessorPairs": "warn",
262
+ "useNodeAssertStrict": "warn",
253
263
  "useNumberNamespace": "warn",
254
264
  "useNumericSeparators": "warn",
255
265
  "useObjectSpread": "warn",
@@ -258,6 +268,7 @@
258
268
  "useSelfClosingElements": "warn",
259
269
  "useShorthandAssign": "warn",
260
270
  "useSingleVarDeclarator": "warn",
271
+ "useSpreadOverApply": "warn",
261
272
  "useSymbolDescription": "warn",
262
273
  "useThrowNewError": "warn",
263
274
  "useThrowOnlyError": "warn",
@@ -285,31 +296,50 @@
285
296
  },
286
297
  "suspicious": {
287
298
  "noAlert": "warn",
299
+ "noArrayIndexKey": "warn",
288
300
  "noBitwiseOperators": "warn",
289
301
  "noConsole": "warn",
290
302
  "noConstantBinaryExpressions": "warn",
291
303
  "noDeprecatedImports": "warn",
304
+ "noDocumentImportInPage": "warn",
292
305
  "noDuplicateDependencies": "warn",
306
+ "noDuplicatedSpreadProps": "warn",
307
+ "noDuplicateTestHooks": "warn",
293
308
  "noEmptyBlockStatements": "warn",
294
309
  "noEmptySource": "warn",
310
+ "noEqualsToNull": "warn",
295
311
  "noEvolvingTypes": "warn",
312
+ "noExportsInTest": "warn",
313
+ "noFocusedTests": "warn",
314
+ "noForIn": "warn",
315
+ "noHeadImportInDocument": "warn",
296
316
  "noImportCycles": "warn",
317
+ "noLeakedRender": "error",
297
318
  "noMisplacedAssertion": "warn",
319
+ "noNestedPromises": "warn",
320
+ "noParametersOnlyUsedInRecursion": "error",
298
321
  "noReactForwardRef": "warn",
322
+ "noReturnAssign": "warn",
323
+ "noShadow": "warn",
299
324
  "noSkippedTests": "warn",
300
325
  "noUnassignedVariables": "warn",
326
+ "noUndeclaredEnvVars": "warn",
327
+ "noUnknownAttribute": "warn",
328
+ "noUnnecessaryConditions": "warn",
301
329
  "noUnusedExpressions": "warn",
302
330
  "noVar": "error",
331
+ "useArraySortCompare": "warn",
303
332
  "useAwait": "warn",
333
+ "useDeprecatedDate": "warn",
304
334
  "useErrorMessage": "warn",
305
335
  "useGuardForIn": "warn",
306
336
  "useNumberToFixedDigitsArgument": "warn",
337
+ "useRequiredScripts": "warn",
307
338
  "useStaticResponseMethods": "warn",
308
339
  "useStrictMode": "warn"
309
340
  }
310
341
  }
311
342
  },
312
-
313
343
  "overrides": [
314
344
  {
315
345
  "includes": ["**/package.json"],
@@ -327,7 +357,6 @@
327
357
  }
328
358
  }
329
359
  ],
330
-
331
360
  "vcs": {
332
361
  "clientKind": "git",
333
362
  "defaultBranch": "main",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.15/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.5.1/schema.json",
3
3
 
4
4
  "assist": {
5
5
  "actions": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvashim/biome-config",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Shared Biome Configurations",
5
5
  "keywords": [
6
6
  "biome",
@@ -46,10 +46,10 @@
46
46
  "dist"
47
47
  ],
48
48
  "devDependencies": {
49
- "@biomejs/biome": "^2.4.15",
49
+ "@biomejs/biome": "^2.5.1",
50
50
  "@changesets/changelog-github": "^0.7.0",
51
51
  "@changesets/cli": "^2.31.0",
52
- "validate-package-exports": "^0.25.0"
52
+ "validate-package-exports": "^1.1.0"
53
53
  },
54
54
  "engines": {
55
55
  "node": ">=24"