@dvashim/biome-config 1.3.3 → 1.4.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 CHANGED
@@ -87,7 +87,7 @@ All configurations share the same base defaults.
87
87
 
88
88
  ### Schema
89
89
 
90
- `https://biomejs.dev/schemas/2.4.7/schema.json`
90
+ `https://biomejs.dev/schemas/2.4.8/schema.json`
91
91
 
92
92
  ### Formatter
93
93
 
@@ -147,9 +147,16 @@ All configurations share the same base defaults.
147
147
  | Option | Value |
148
148
  |--------|-------|
149
149
  | clientKind | `"git"` |
150
+ | enabled | `true` |
150
151
  | defaultBranch | `"main"` |
151
152
  | useIgnoreFile | `true` |
152
153
 
154
+ ### Overrides
155
+
156
+ | File pattern | Setting | Value |
157
+ |--------------|---------|-------|
158
+ | `package.json` | json.formatter.expand | `"always"` |
159
+
153
160
  ### Assist
154
161
 
155
162
  | Option | Value |
@@ -173,7 +180,7 @@ Same as base recommended, plus enables the **React domain** (`"react": "recommen
173
180
 
174
181
  ### React strict
175
182
 
176
- The most opinionated configuration. Enables all recommended rules plus **120+ optional and nursery rules** across 8 categories. Every non-recommended JS/TS rule available in Biome is explicitly configured.
183
+ The most opinionated configuration. Enables all recommended rules plus **180+ optional and nursery rules** across 8 categories. Every non-recommended JS/TS rule available in Biome is explicitly configured.
177
184
 
178
185
  - **a11y** — Selectively disables noisy rules (`useButtonType`, `useKeyWithClickEvents`, `useSemanticElements`, `noStaticElementInteractions`, `noNoninteractiveElementToInteractiveRole`) while keeping the rest at recommended defaults.
179
186
 
@@ -181,12 +188,13 @@ The most opinionated configuration. Enables all recommended rules plus **120+ op
181
188
 
182
189
  - **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.
183
190
 
184
- - **nursery** (67 rules) — Opts into all experimental rules. Highlights include:
191
+ - **nursery** (68 rules) — Opts into all experimental rules. Highlights include:
185
192
  - **Errors:** `noJsxPropsBind`, `noLeakedRender`, `noMisusedPromises`, `noMultiAssign`, `noParametersOnlyUsedInRecursion`
186
193
  - **Promises:** `noFloatingPromises`, `noNestedPromises`, `useAwaitThenable`
187
194
  - **TypeScript:** `useConsistentEnumValueType`, `useConsistentMethodSignatures`, `useExhaustiveSwitchCases`, `useNullishCoalescing`
188
195
  - **Regex:** `useNamedCaptureGroup`, `useUnicodeRegex`, `useRegexpExec`
189
196
  - **Playwright:** Full suite of 10 Playwright rules
197
+ - **Drizzle:** `noDrizzleDeleteWithoutWhere`, `noDrizzleUpdateWithoutWhere`
190
198
  - **Tailwind:** `useSortedClasses`, `noFloatingClasses`
191
199
  - **Disabled:** `noTernary`, `useExplicitType`
192
200
 
@@ -194,7 +202,7 @@ The most opinionated configuration. Enables all recommended rules plus **120+ op
194
202
 
195
203
  - **security** — `noSecrets`
196
204
 
197
- - **style** (44 rules) — Enforces consistent syntax, naming conventions (`strictCase: true`), array shorthand syntax, `type` over `interface`, React function components, readonly class properties, `noDefaultExport`, `noMagicNumbers`, `noJsxLiterals`, and more.
205
+ - **style** (56 rules) — Enforces consistent syntax, naming conventions (`strictCase: true`), array shorthand syntax, `type` over `interface`, React function components, readonly class properties, `noDefaultExport`, `noMagicNumbers`, `noJsxLiterals`, and more.
198
206
 
199
207
  - **suspicious** (22 rules) — Flags `var` (error), `console`, `alert`, bitwise operators, empty blocks, import cycles, evolving types, skipped tests, and deprecated imports.
200
208
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.7/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
3
3
 
4
4
  // MARK: assist
5
5
  "assist": {
@@ -117,6 +117,8 @@
117
117
  "noConditionalExpect": "warn",
118
118
  "noContinue": "info",
119
119
  "noDivRegex": "warn",
120
+ "noDrizzleDeleteWithoutWhere": "warn",
121
+ "noDrizzleUpdateWithoutWhere": "warn",
120
122
  "noDuplicateAttributes": "warn",
121
123
  "noDuplicatedSpreadProps": "warn",
122
124
  "noDuplicateEnumValueNames": "warn",
@@ -301,9 +303,22 @@
301
303
  }
302
304
  },
303
305
 
306
+ // MARK: overrides
307
+ "overrides": [
308
+ {
309
+ "includes": ["package.json"],
310
+ "json": {
311
+ "formatter": {
312
+ "expand": "always"
313
+ }
314
+ }
315
+ }
316
+ ],
317
+
304
318
  // MARK: vcs
305
319
  "vcs": {
306
320
  "clientKind": "git",
321
+ "enabled": true,
307
322
  "defaultBranch": "main",
308
323
  "useIgnoreFile": true
309
324
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.7/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
3
3
 
4
4
  // MARK: assist
5
5
  "assist": {
@@ -74,9 +74,22 @@
74
74
  }
75
75
  },
76
76
 
77
+ // MARK: overrides
78
+ "overrides": [
79
+ {
80
+ "includes": ["package.json"],
81
+ "json": {
82
+ "formatter": {
83
+ "expand": "always"
84
+ }
85
+ }
86
+ }
87
+ ],
88
+
77
89
  // MARK: vcs
78
90
  "vcs": {
79
91
  "clientKind": "git",
92
+ "enabled": true,
80
93
  "defaultBranch": "main",
81
94
  "useIgnoreFile": true
82
95
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.7/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
3
3
 
4
4
  // MARK: assist
5
5
  "assist": {
@@ -112,6 +112,8 @@
112
112
  "noConditionalExpect": "warn",
113
113
  "noContinue": "warn",
114
114
  "noDivRegex": "warn",
115
+ "noDrizzleDeleteWithoutWhere": "warn",
116
+ "noDrizzleUpdateWithoutWhere": "warn",
115
117
  "noDuplicateAttributes": "warn",
116
118
  "noDuplicatedSpreadProps": "warn",
117
119
  "noDuplicateEnumValueNames": "warn",
@@ -291,9 +293,22 @@
291
293
  }
292
294
  },
293
295
 
296
+ // MARK: overrides
297
+ "overrides": [
298
+ {
299
+ "includes": ["package.json"],
300
+ "json": {
301
+ "formatter": {
302
+ "expand": "always"
303
+ }
304
+ }
305
+ }
306
+ ],
307
+
294
308
  // MARK: vcs
295
309
  "vcs": {
296
310
  "clientKind": "git",
311
+ "enabled": true,
297
312
  "defaultBranch": "main",
298
313
  "useIgnoreFile": true
299
314
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.4.7/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
3
3
 
4
4
  // MARK: assist
5
5
  "assist": {
@@ -71,9 +71,22 @@
71
71
  }
72
72
  },
73
73
 
74
+ // MARK: overrides
75
+ "overrides": [
76
+ {
77
+ "includes": ["package.json"],
78
+ "json": {
79
+ "formatter": {
80
+ "expand": "always"
81
+ }
82
+ }
83
+ }
84
+ ],
85
+
74
86
  // MARK: vcs
75
87
  "vcs": {
76
88
  "clientKind": "git",
89
+ "enabled": true,
77
90
  "defaultBranch": "main",
78
91
  "useIgnoreFile": true
79
92
  }
package/package.json CHANGED
@@ -3,16 +3,16 @@
3
3
  "license": "MIT",
4
4
  "name": "@dvashim/biome-config",
5
5
  "type": "module",
6
- "version": "1.3.3",
6
+ "version": "1.4.0",
7
7
  "author": {
8
8
  "email": "aleksei@dvashim.dev",
9
9
  "name": "Aleksei Reznichenko"
10
10
  },
11
11
  "devDependencies": {
12
- "@biomejs/biome": "^2.4.7",
12
+ "@biomejs/biome": "^2.4.8",
13
13
  "@changesets/changelog-github": "^0.6.0",
14
14
  "@changesets/cli": "^2.30.0",
15
- "validate-package-exports": "^0.21.0"
15
+ "validate-package-exports": "^0.22.0"
16
16
  },
17
17
  "exports": {
18
18
  ".": "./dist/biome.recommended.jsonc",