@dvashim/biome-config 1.6.0 → 1.8.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 +10 -7
- package/dist/biome.react-balanced-stable.json +1 -1
- package/dist/biome.react-balanced.json +11 -1
- package/dist/biome.react-recommended.json +1 -1
- package/dist/biome.react-strict-stable.json +1 -1
- package/dist/biome.react-strict.json +11 -1
- package/dist/biome.recommended.json +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -143,7 +143,7 @@ All configurations share the same base defaults.
|
|
|
143
143
|
|
|
144
144
|
### Schema
|
|
145
145
|
|
|
146
|
-
`https://biomejs.dev/schemas/2.4.
|
|
146
|
+
`https://biomejs.dev/schemas/2.4.14/schema.json`
|
|
147
147
|
|
|
148
148
|
### Formatter
|
|
149
149
|
|
|
@@ -245,18 +245,21 @@ The most opinionated configuration. Enables all recommended rules plus **200+ op
|
|
|
245
245
|
|
|
246
246
|
- **correctness** (12 rules) — Ensures no undeclared variables/dependencies, proper React patterns (`noReactPropAssignments`, `noNestedComponentDefinitions`), Node.js guards (`noNodejsModules`, `noProcessGlobal`, `noGlobalDirnameFilename`), and JSON import attributes. `noUnresolvedImports` is disabled since TypeScript already performs these checks.
|
|
247
247
|
|
|
248
|
-
- **nursery** (
|
|
249
|
-
- **Errors:** `noJsxPropsBind`, `noLeakedRender`, `noMisusedPromises`, `noMultiAssign`, `noParametersOnlyUsedInRecursion`
|
|
248
|
+
- **nursery** (97 rules) — Opts into all experimental rules. Highlights include:
|
|
249
|
+
- **Errors:** `noJsxPropsBind`, `noLeakedRender`, `noMisusedPromises`, `noMultiAssign`, `noMultiStr`, `noParametersOnlyUsedInRecursion`
|
|
250
|
+
- **Complexity:** `noExcessiveClassesPerFile`, `noExcessiveLinesPerFile`, `noExcessiveNestedCallbacks`
|
|
250
251
|
- **Promises:** `noFloatingPromises`, `noNestedPromises`, `useAwaitThenable`
|
|
251
252
|
- **TypeScript:** `useConsistentEnumValueType`, `useConsistentMethodSignatures`, `useExhaustiveSwitchCases`, `useExplicitReturnType`, `noMisleadingReturnType`, `noUselessTypeConversion`, `useNullishCoalescing`, `useReduceTypeParameter`
|
|
252
253
|
- **Resource management:** `useDisposables` (enforces `using` for `Disposable`/`AsyncDisposable`)
|
|
253
|
-
- **Regex:** `useNamedCaptureGroup`, `useUnicodeRegex`, `useRegexpExec`
|
|
254
|
+
- **Regex:** `useNamedCaptureGroup`, `useUnicodeRegex`, `useRegexpExec`, `useRegexpTest`
|
|
255
|
+
- **DOM:** `useDomNodeTextContent`, `useDomQuerySelector`
|
|
256
|
+
- **Math:** `useMathMinMax`
|
|
254
257
|
- **Styling:** `noDuplicateSelectors`, `noInlineStyles`, `noExcessiveSelectorClasses`
|
|
255
|
-
- **Testing:** `useConsistentTestIt`, `useExpect`, `noConditionalExpect`, `noIdenticalTestTitle`
|
|
256
|
-
- **Playwright:** Full suite of
|
|
258
|
+
- **Testing:** `useConsistentTestIt`, `useExpect`, `noConditionalExpect`, `noIdenticalTestTitle`, `useTestHooksOnTop`
|
|
259
|
+
- **Playwright:** Full suite of 11 Playwright rules
|
|
257
260
|
- **Drizzle:** `noDrizzleDeleteWithoutWhere`, `noDrizzleUpdateWithoutWhere`
|
|
258
261
|
- **Tailwind:** `useSortedClasses`, `noFloatingClasses`
|
|
259
|
-
- **React:** `useReactAsyncServerFunction`, `noComponentHookFactories`, `noJsxNamespace`
|
|
262
|
+
- **React:** `useReactAsyncServerFunction`, `noComponentHookFactories`, `noJsxNamespace`, `noReactStringRefs`
|
|
260
263
|
- **Security:** `useIframeSandbox`
|
|
261
264
|
- **Dependencies:** `noUntrustedLicenses`
|
|
262
265
|
- **Disabled:** `noTernary`, `useExplicitType`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.14/schema.json",
|
|
3
3
|
|
|
4
4
|
"assist": {
|
|
5
5
|
"actions": {
|
|
@@ -118,6 +118,7 @@
|
|
|
118
118
|
"noEqualsToNull": "warn",
|
|
119
119
|
"noExcessiveClassesPerFile": "warn",
|
|
120
120
|
"noExcessiveLinesPerFile": "warn",
|
|
121
|
+
"noExcessiveNestedCallbacks": "warn",
|
|
121
122
|
"noExcessiveSelectorClasses": "warn",
|
|
122
123
|
"noFloatingClasses": "warn",
|
|
123
124
|
"noFloatingPromises": "warn",
|
|
@@ -125,9 +126,11 @@
|
|
|
125
126
|
"noIdenticalTestTitle": "warn",
|
|
126
127
|
"noImpliedEval": "warn",
|
|
127
128
|
"noInlineStyles": "warn",
|
|
129
|
+
"noJsxLeakedDollar": "warn",
|
|
128
130
|
"noJsxNamespace": "warn",
|
|
129
131
|
"noJsxPropsBind": "error",
|
|
130
132
|
"noLeakedRender": "error",
|
|
133
|
+
"noLoopFunc": "warn",
|
|
131
134
|
"noMisleadingReturnType": "warn",
|
|
132
135
|
"noMisusedPromises": "error",
|
|
133
136
|
"noMultiAssign": "error",
|
|
@@ -145,6 +148,7 @@
|
|
|
145
148
|
"noPlaywrightWaitForSelector": "warn",
|
|
146
149
|
"noPlaywrightWaitForTimeout": "warn",
|
|
147
150
|
"noProto": "warn",
|
|
151
|
+
"noReactStringRefs": "warn",
|
|
148
152
|
"noRedundantDefaultExport": "warn",
|
|
149
153
|
"noReturnAssign": "warn",
|
|
150
154
|
"noScriptUrl": "warn",
|
|
@@ -155,6 +159,7 @@
|
|
|
155
159
|
"noUndeclaredEnvVars": "warn",
|
|
156
160
|
"noUnknownAttribute": "warn",
|
|
157
161
|
"noUnnecessaryConditions": "warn",
|
|
162
|
+
"noUnnecessaryTemplateExpression": "warn",
|
|
158
163
|
"noUnsafePlusOperands": "warn",
|
|
159
164
|
"noUntrustedLicenses": "warn",
|
|
160
165
|
"noUselessReturn": "info",
|
|
@@ -168,6 +173,8 @@
|
|
|
168
173
|
"useConsistentTestIt": "warn",
|
|
169
174
|
"useDestructuring": "warn",
|
|
170
175
|
"useDisposables": "warn",
|
|
176
|
+
"useDomNodeTextContent": "warn",
|
|
177
|
+
"useDomQuerySelector": "warn",
|
|
171
178
|
"useErrorCause": "warn",
|
|
172
179
|
"useExhaustiveSwitchCases": "warn",
|
|
173
180
|
"useExpect": "warn",
|
|
@@ -177,15 +184,18 @@
|
|
|
177
184
|
"useGlobalThis": "warn",
|
|
178
185
|
"useIframeSandbox": "warn",
|
|
179
186
|
"useImportsFirst": "warn",
|
|
187
|
+
"useMathMinMax": "warn",
|
|
180
188
|
"useNamedCaptureGroup": "warn",
|
|
181
189
|
"useNullishCoalescing": "warn",
|
|
182
190
|
"usePlaywrightValidDescribeCallback": "warn",
|
|
183
191
|
"useReactAsyncServerFunction": "warn",
|
|
184
192
|
"useReduceTypeParameter": "warn",
|
|
185
193
|
"useRegexpExec": "warn",
|
|
194
|
+
"useRegexpTest": "warn",
|
|
186
195
|
"useSortedClasses": "warn",
|
|
187
196
|
"useSpread": "warn",
|
|
188
197
|
"useStringStartsEndsWith": "warn",
|
|
198
|
+
"useTestHooksOnTop": "warn",
|
|
189
199
|
"useUnicodeRegex": "warn",
|
|
190
200
|
"useVarsOnTop": "warn",
|
|
191
201
|
"noIncrementDecrement": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.14/schema.json",
|
|
3
3
|
|
|
4
4
|
"assist": {
|
|
5
5
|
"actions": {
|
|
@@ -113,6 +113,7 @@
|
|
|
113
113
|
"noEqualsToNull": "warn",
|
|
114
114
|
"noExcessiveClassesPerFile": "warn",
|
|
115
115
|
"noExcessiveLinesPerFile": "warn",
|
|
116
|
+
"noExcessiveNestedCallbacks": "warn",
|
|
116
117
|
"noExcessiveSelectorClasses": "warn",
|
|
117
118
|
"noFloatingClasses": "warn",
|
|
118
119
|
"noFloatingPromises": "warn",
|
|
@@ -121,9 +122,11 @@
|
|
|
121
122
|
"noImpliedEval": "warn",
|
|
122
123
|
"noIncrementDecrement": "warn",
|
|
123
124
|
"noInlineStyles": "warn",
|
|
125
|
+
"noJsxLeakedDollar": "warn",
|
|
124
126
|
"noJsxNamespace": "warn",
|
|
125
127
|
"noJsxPropsBind": "error",
|
|
126
128
|
"noLeakedRender": "error",
|
|
129
|
+
"noLoopFunc": "warn",
|
|
127
130
|
"noMisleadingReturnType": "warn",
|
|
128
131
|
"noMisusedPromises": "error",
|
|
129
132
|
"noMultiAssign": "error",
|
|
@@ -141,6 +144,7 @@
|
|
|
141
144
|
"noPlaywrightWaitForSelector": "warn",
|
|
142
145
|
"noPlaywrightWaitForTimeout": "warn",
|
|
143
146
|
"noProto": "warn",
|
|
147
|
+
"noReactStringRefs": "warn",
|
|
144
148
|
"noRedundantDefaultExport": "warn",
|
|
145
149
|
"noReturnAssign": "warn",
|
|
146
150
|
"noScriptUrl": "warn",
|
|
@@ -151,6 +155,7 @@
|
|
|
151
155
|
"noUndeclaredEnvVars": "warn",
|
|
152
156
|
"noUnknownAttribute": "warn",
|
|
153
157
|
"noUnnecessaryConditions": "warn",
|
|
158
|
+
"noUnnecessaryTemplateExpression": "warn",
|
|
154
159
|
"noUnsafePlusOperands": "warn",
|
|
155
160
|
"noUntrustedLicenses": "warn",
|
|
156
161
|
"noUselessReturn": "warn",
|
|
@@ -164,6 +169,8 @@
|
|
|
164
169
|
"useConsistentTestIt": "warn",
|
|
165
170
|
"useDestructuring": "warn",
|
|
166
171
|
"useDisposables": "warn",
|
|
172
|
+
"useDomNodeTextContent": "warn",
|
|
173
|
+
"useDomQuerySelector": "warn",
|
|
167
174
|
"useErrorCause": "warn",
|
|
168
175
|
"useExhaustiveSwitchCases": "warn",
|
|
169
176
|
"useExpect": "warn",
|
|
@@ -173,15 +180,18 @@
|
|
|
173
180
|
"useGlobalThis": "warn",
|
|
174
181
|
"useIframeSandbox": "warn",
|
|
175
182
|
"useImportsFirst": "warn",
|
|
183
|
+
"useMathMinMax": "warn",
|
|
176
184
|
"useNamedCaptureGroup": "warn",
|
|
177
185
|
"useNullishCoalescing": "warn",
|
|
178
186
|
"usePlaywrightValidDescribeCallback": "warn",
|
|
179
187
|
"useReactAsyncServerFunction": "warn",
|
|
180
188
|
"useReduceTypeParameter": "warn",
|
|
181
189
|
"useRegexpExec": "warn",
|
|
190
|
+
"useRegexpTest": "warn",
|
|
182
191
|
"useSortedClasses": "warn",
|
|
183
192
|
"useSpread": "warn",
|
|
184
193
|
"useStringStartsEndsWith": "warn",
|
|
194
|
+
"useTestHooksOnTop": "warn",
|
|
185
195
|
"useUnicodeRegex": "warn",
|
|
186
196
|
"useVarsOnTop": "warn"
|
|
187
197
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvashim/biome-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Shared Biome Configurations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"biome",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"dist"
|
|
47
47
|
],
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@biomejs/biome": "^2.4.
|
|
49
|
+
"@biomejs/biome": "^2.4.14",
|
|
50
50
|
"@changesets/changelog-github": "^0.6.0",
|
|
51
|
-
"@changesets/cli": "^2.
|
|
52
|
-
"validate-package-exports": "^0.
|
|
51
|
+
"@changesets/cli": "^2.31.0",
|
|
52
|
+
"validate-package-exports": "^0.24.0"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
|
-
"node": ">=
|
|
55
|
+
"node": ">=24"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|