@dvashim/biome-config 1.5.12 → 1.5.13
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
CHANGED
|
@@ -109,7 +109,7 @@ All configurations share the same base defaults.
|
|
|
109
109
|
|
|
110
110
|
### Schema
|
|
111
111
|
|
|
112
|
-
`https://biomejs.dev/schemas/2.4.
|
|
112
|
+
`https://biomejs.dev/schemas/2.4.11/schema.json`
|
|
113
113
|
|
|
114
114
|
### Formatter
|
|
115
115
|
|
|
@@ -211,12 +211,14 @@ The most opinionated configuration. Enables all recommended rules plus **180+ op
|
|
|
211
211
|
|
|
212
212
|
- **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.
|
|
213
213
|
|
|
214
|
-
- **nursery** (
|
|
214
|
+
- **nursery** (78 rules) — Opts into all experimental rules. Highlights include:
|
|
215
215
|
- **Errors:** `noJsxPropsBind`, `noLeakedRender`, `noMisusedPromises`, `noMultiAssign`, `noParametersOnlyUsedInRecursion`
|
|
216
216
|
- **Promises:** `noFloatingPromises`, `noNestedPromises`, `useAwaitThenable`
|
|
217
|
-
- **TypeScript:** `useConsistentEnumValueType`, `useConsistentMethodSignatures`, `useExhaustiveSwitchCases`, `useNullishCoalescing`
|
|
217
|
+
- **TypeScript:** `useConsistentEnumValueType`, `useConsistentMethodSignatures`, `useExhaustiveSwitchCases`, `useExplicitReturnType`, `noMisleadingReturnType`, `noUselessTypeConversion`, `useNullishCoalescing`
|
|
218
|
+
- **Resource management:** `useDisposables` (enforces `using` for `Disposable`/`AsyncDisposable`)
|
|
218
219
|
- **Regex:** `useNamedCaptureGroup`, `useUnicodeRegex`, `useRegexpExec`
|
|
219
220
|
- **Styling:** `noDuplicateSelectors`, `noInlineStyles`
|
|
221
|
+
- **Testing:** `useConsistentTestIt`, `useExpect`, `noConditionalExpect`
|
|
220
222
|
- **Playwright:** Full suite of 10 Playwright rules
|
|
221
223
|
- **Drizzle:** `noDrizzleDeleteWithoutWhere`, `noDrizzleUpdateWithoutWhere`
|
|
222
224
|
- **Tailwind:** `useSortedClasses`, `noFloatingClasses`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.11/schema.json",
|
|
3
3
|
|
|
4
4
|
"assist": {
|
|
5
5
|
"actions": {
|
|
@@ -124,6 +124,7 @@
|
|
|
124
124
|
"noInlineStyles": "warn",
|
|
125
125
|
"noJsxPropsBind": "error",
|
|
126
126
|
"noLeakedRender": "error",
|
|
127
|
+
"noMisleadingReturnType": "warn",
|
|
127
128
|
"noMisusedPromises": "error",
|
|
128
129
|
"noMultiAssign": "error",
|
|
129
130
|
"noMultiStr": "error",
|
|
@@ -153,16 +154,20 @@
|
|
|
153
154
|
"noUnsafePlusOperands": "warn",
|
|
154
155
|
"noUntrustedLicenses": "warn",
|
|
155
156
|
"noUselessReturn": "info",
|
|
157
|
+
"noUselessTypeConversion": "warn",
|
|
156
158
|
"useArraySome": "warn",
|
|
157
159
|
"useArraySortCompare": "warn",
|
|
158
160
|
"useAwaitThenable": "warn",
|
|
159
161
|
"useBaseline": "warn",
|
|
160
162
|
"useConsistentEnumValueType": "warn",
|
|
161
163
|
"useConsistentMethodSignatures": "warn",
|
|
164
|
+
"useConsistentTestIt": "warn",
|
|
162
165
|
"useDestructuring": "warn",
|
|
166
|
+
"useDisposables": "warn",
|
|
163
167
|
"useErrorCause": "warn",
|
|
164
168
|
"useExhaustiveSwitchCases": "warn",
|
|
165
169
|
"useExpect": "warn",
|
|
170
|
+
"useExplicitReturnType": "warn",
|
|
166
171
|
"useExplicitType": "off",
|
|
167
172
|
"useFind": "warn",
|
|
168
173
|
"useGlobalThis": "warn",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.11/schema.json",
|
|
3
3
|
|
|
4
4
|
"assist": {
|
|
5
5
|
"actions": {
|
|
@@ -120,6 +120,7 @@
|
|
|
120
120
|
"noInlineStyles": "warn",
|
|
121
121
|
"noJsxPropsBind": "error",
|
|
122
122
|
"noLeakedRender": "error",
|
|
123
|
+
"noMisleadingReturnType": "warn",
|
|
123
124
|
"noMisusedPromises": "error",
|
|
124
125
|
"noMultiAssign": "error",
|
|
125
126
|
"noMultiStr": "error",
|
|
@@ -149,16 +150,20 @@
|
|
|
149
150
|
"noUnsafePlusOperands": "warn",
|
|
150
151
|
"noUntrustedLicenses": "warn",
|
|
151
152
|
"noUselessReturn": "warn",
|
|
153
|
+
"noUselessTypeConversion": "warn",
|
|
152
154
|
"useArraySome": "warn",
|
|
153
155
|
"useArraySortCompare": "warn",
|
|
154
156
|
"useAwaitThenable": "warn",
|
|
155
157
|
"useBaseline": "warn",
|
|
156
158
|
"useConsistentEnumValueType": "warn",
|
|
157
159
|
"useConsistentMethodSignatures": "warn",
|
|
160
|
+
"useConsistentTestIt": "warn",
|
|
158
161
|
"useDestructuring": "warn",
|
|
162
|
+
"useDisposables": "warn",
|
|
159
163
|
"useErrorCause": "warn",
|
|
160
164
|
"useExhaustiveSwitchCases": "warn",
|
|
161
165
|
"useExpect": "warn",
|
|
166
|
+
"useExplicitReturnType": "warn",
|
|
162
167
|
"useExplicitType": "off",
|
|
163
168
|
"useFind": "warn",
|
|
164
169
|
"useGlobalThis": "warn",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvashim/biome-config",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.13",
|
|
4
4
|
"description": "Shared Biome Configurations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"biome",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@biomejs/biome": "^2.4.
|
|
45
|
+
"@biomejs/biome": "^2.4.11",
|
|
46
46
|
"@changesets/changelog-github": "^0.6.0",
|
|
47
47
|
"@changesets/cli": "^2.30.0",
|
|
48
48
|
"validate-package-exports": "^0.23.0"
|