@dvashim/biome-config 1.6.0 → 1.7.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 +4 -3
- package/dist/biome.react-balanced-stable.json +1 -1
- package/dist/biome.react-balanced.json +7 -1
- package/dist/biome.react-recommended.json +1 -1
- package/dist/biome.react-strict-stable.json +1 -1
- package/dist/biome.react-strict.json +7 -1
- package/dist/biome.recommended.json +1 -1
- package/package.json +3 -3
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.13/schema.json`
|
|
147
147
|
|
|
148
148
|
### Formatter
|
|
149
149
|
|
|
@@ -245,12 +245,13 @@ 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** (
|
|
248
|
+
- **nursery** (93 rules) — Opts into all experimental rules. Highlights include:
|
|
249
249
|
- **Errors:** `noJsxPropsBind`, `noLeakedRender`, `noMisusedPromises`, `noMultiAssign`, `noParametersOnlyUsedInRecursion`
|
|
250
250
|
- **Promises:** `noFloatingPromises`, `noNestedPromises`, `useAwaitThenable`
|
|
251
251
|
- **TypeScript:** `useConsistentEnumValueType`, `useConsistentMethodSignatures`, `useExhaustiveSwitchCases`, `useExplicitReturnType`, `noMisleadingReturnType`, `noUselessTypeConversion`, `useNullishCoalescing`, `useReduceTypeParameter`
|
|
252
252
|
- **Resource management:** `useDisposables` (enforces `using` for `Disposable`/`AsyncDisposable`)
|
|
253
|
-
- **Regex:** `useNamedCaptureGroup`, `useUnicodeRegex`, `useRegexpExec`
|
|
253
|
+
- **Regex:** `useNamedCaptureGroup`, `useUnicodeRegex`, `useRegexpExec`, `useRegexpTest`
|
|
254
|
+
- **DOM:** `useDomNodeTextContent`, `useDomQuerySelector`
|
|
254
255
|
- **Styling:** `noDuplicateSelectors`, `noInlineStyles`, `noExcessiveSelectorClasses`
|
|
255
256
|
- **Testing:** `useConsistentTestIt`, `useExpect`, `noConditionalExpect`, `noIdenticalTestTitle`
|
|
256
257
|
- **Playwright:** Full suite of 10 Playwright rules
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.13/schema.json",
|
|
3
3
|
|
|
4
4
|
"assist": {
|
|
5
5
|
"actions": {
|
|
@@ -125,9 +125,11 @@
|
|
|
125
125
|
"noIdenticalTestTitle": "warn",
|
|
126
126
|
"noImpliedEval": "warn",
|
|
127
127
|
"noInlineStyles": "warn",
|
|
128
|
+
"noJsxLeakedDollar": "warn",
|
|
128
129
|
"noJsxNamespace": "warn",
|
|
129
130
|
"noJsxPropsBind": "error",
|
|
130
131
|
"noLeakedRender": "error",
|
|
132
|
+
"noLoopFunc": "warn",
|
|
131
133
|
"noMisleadingReturnType": "warn",
|
|
132
134
|
"noMisusedPromises": "error",
|
|
133
135
|
"noMultiAssign": "error",
|
|
@@ -155,6 +157,7 @@
|
|
|
155
157
|
"noUndeclaredEnvVars": "warn",
|
|
156
158
|
"noUnknownAttribute": "warn",
|
|
157
159
|
"noUnnecessaryConditions": "warn",
|
|
160
|
+
"noUnnecessaryTemplateExpression": "warn",
|
|
158
161
|
"noUnsafePlusOperands": "warn",
|
|
159
162
|
"noUntrustedLicenses": "warn",
|
|
160
163
|
"noUselessReturn": "info",
|
|
@@ -168,6 +171,8 @@
|
|
|
168
171
|
"useConsistentTestIt": "warn",
|
|
169
172
|
"useDestructuring": "warn",
|
|
170
173
|
"useDisposables": "warn",
|
|
174
|
+
"useDomNodeTextContent": "warn",
|
|
175
|
+
"useDomQuerySelector": "warn",
|
|
171
176
|
"useErrorCause": "warn",
|
|
172
177
|
"useExhaustiveSwitchCases": "warn",
|
|
173
178
|
"useExpect": "warn",
|
|
@@ -183,6 +188,7 @@
|
|
|
183
188
|
"useReactAsyncServerFunction": "warn",
|
|
184
189
|
"useReduceTypeParameter": "warn",
|
|
185
190
|
"useRegexpExec": "warn",
|
|
191
|
+
"useRegexpTest": "warn",
|
|
186
192
|
"useSortedClasses": "warn",
|
|
187
193
|
"useSpread": "warn",
|
|
188
194
|
"useStringStartsEndsWith": "warn",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.13/schema.json",
|
|
3
3
|
|
|
4
4
|
"assist": {
|
|
5
5
|
"actions": {
|
|
@@ -121,9 +121,11 @@
|
|
|
121
121
|
"noImpliedEval": "warn",
|
|
122
122
|
"noIncrementDecrement": "warn",
|
|
123
123
|
"noInlineStyles": "warn",
|
|
124
|
+
"noJsxLeakedDollar": "warn",
|
|
124
125
|
"noJsxNamespace": "warn",
|
|
125
126
|
"noJsxPropsBind": "error",
|
|
126
127
|
"noLeakedRender": "error",
|
|
128
|
+
"noLoopFunc": "warn",
|
|
127
129
|
"noMisleadingReturnType": "warn",
|
|
128
130
|
"noMisusedPromises": "error",
|
|
129
131
|
"noMultiAssign": "error",
|
|
@@ -151,6 +153,7 @@
|
|
|
151
153
|
"noUndeclaredEnvVars": "warn",
|
|
152
154
|
"noUnknownAttribute": "warn",
|
|
153
155
|
"noUnnecessaryConditions": "warn",
|
|
156
|
+
"noUnnecessaryTemplateExpression": "warn",
|
|
154
157
|
"noUnsafePlusOperands": "warn",
|
|
155
158
|
"noUntrustedLicenses": "warn",
|
|
156
159
|
"noUselessReturn": "warn",
|
|
@@ -164,6 +167,8 @@
|
|
|
164
167
|
"useConsistentTestIt": "warn",
|
|
165
168
|
"useDestructuring": "warn",
|
|
166
169
|
"useDisposables": "warn",
|
|
170
|
+
"useDomNodeTextContent": "warn",
|
|
171
|
+
"useDomQuerySelector": "warn",
|
|
167
172
|
"useErrorCause": "warn",
|
|
168
173
|
"useExhaustiveSwitchCases": "warn",
|
|
169
174
|
"useExpect": "warn",
|
|
@@ -179,6 +184,7 @@
|
|
|
179
184
|
"useReactAsyncServerFunction": "warn",
|
|
180
185
|
"useReduceTypeParameter": "warn",
|
|
181
186
|
"useRegexpExec": "warn",
|
|
187
|
+
"useRegexpTest": "warn",
|
|
182
188
|
"useSortedClasses": "warn",
|
|
183
189
|
"useSpread": "warn",
|
|
184
190
|
"useStringStartsEndsWith": "warn",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvashim/biome-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Shared Biome Configurations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"biome",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"dist"
|
|
47
47
|
],
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@biomejs/biome": "^2.4.
|
|
49
|
+
"@biomejs/biome": "^2.4.13",
|
|
50
50
|
"@changesets/changelog-github": "^0.6.0",
|
|
51
|
-
"@changesets/cli": "^2.
|
|
51
|
+
"@changesets/cli": "^2.31.0",
|
|
52
52
|
"validate-package-exports": "^0.23.0"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|