@dvashim/biome-config 1.3.3 → 1.3.4
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.
|
|
90
|
+
`https://biomejs.dev/schemas/2.4.8/schema.json`
|
|
91
91
|
|
|
92
92
|
### Formatter
|
|
93
93
|
|
|
@@ -147,6 +147,7 @@ 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
|
|
|
@@ -173,7 +174,7 @@ Same as base recommended, plus enables the **React domain** (`"react": "recommen
|
|
|
173
174
|
|
|
174
175
|
### React strict
|
|
175
176
|
|
|
176
|
-
The most opinionated configuration. Enables all recommended rules plus **
|
|
177
|
+
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
178
|
|
|
178
179
|
- **a11y** — Selectively disables noisy rules (`useButtonType`, `useKeyWithClickEvents`, `useSemanticElements`, `noStaticElementInteractions`, `noNoninteractiveElementToInteractiveRole`) while keeping the rest at recommended defaults.
|
|
179
180
|
|
|
@@ -181,12 +182,13 @@ The most opinionated configuration. Enables all recommended rules plus **120+ op
|
|
|
181
182
|
|
|
182
183
|
- **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
184
|
|
|
184
|
-
- **nursery** (
|
|
185
|
+
- **nursery** (68 rules) — Opts into all experimental rules. Highlights include:
|
|
185
186
|
- **Errors:** `noJsxPropsBind`, `noLeakedRender`, `noMisusedPromises`, `noMultiAssign`, `noParametersOnlyUsedInRecursion`
|
|
186
187
|
- **Promises:** `noFloatingPromises`, `noNestedPromises`, `useAwaitThenable`
|
|
187
188
|
- **TypeScript:** `useConsistentEnumValueType`, `useConsistentMethodSignatures`, `useExhaustiveSwitchCases`, `useNullishCoalescing`
|
|
188
189
|
- **Regex:** `useNamedCaptureGroup`, `useUnicodeRegex`, `useRegexpExec`
|
|
189
190
|
- **Playwright:** Full suite of 10 Playwright rules
|
|
191
|
+
- **Drizzle:** `noDrizzleDeleteWithoutWhere`, `noDrizzleUpdateWithoutWhere`
|
|
190
192
|
- **Tailwind:** `useSortedClasses`, `noFloatingClasses`
|
|
191
193
|
- **Disabled:** `noTernary`, `useExplicitType`
|
|
192
194
|
|
|
@@ -194,7 +196,7 @@ The most opinionated configuration. Enables all recommended rules plus **120+ op
|
|
|
194
196
|
|
|
195
197
|
- **security** — `noSecrets`
|
|
196
198
|
|
|
197
|
-
- **style** (
|
|
199
|
+
- **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
200
|
|
|
199
201
|
- **suspicious** (22 rules) — Flags `var` (error), `console`, `alert`, bitwise operators, empty blocks, import cycles, evolving types, skipped tests, and deprecated imports.
|
|
200
202
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.
|
|
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",
|
|
@@ -304,6 +306,7 @@
|
|
|
304
306
|
// MARK: vcs
|
|
305
307
|
"vcs": {
|
|
306
308
|
"clientKind": "git",
|
|
309
|
+
"enabled": true,
|
|
307
310
|
"defaultBranch": "main",
|
|
308
311
|
"useIgnoreFile": true
|
|
309
312
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
|
|
3
3
|
|
|
4
4
|
// MARK: assist
|
|
5
5
|
"assist": {
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
// MARK: vcs
|
|
78
78
|
"vcs": {
|
|
79
79
|
"clientKind": "git",
|
|
80
|
+
"enabled": true,
|
|
80
81
|
"defaultBranch": "main",
|
|
81
82
|
"useIgnoreFile": true
|
|
82
83
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.
|
|
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",
|
|
@@ -294,6 +296,7 @@
|
|
|
294
296
|
// MARK: vcs
|
|
295
297
|
"vcs": {
|
|
296
298
|
"clientKind": "git",
|
|
299
|
+
"enabled": true,
|
|
297
300
|
"defaultBranch": "main",
|
|
298
301
|
"useIgnoreFile": true
|
|
299
302
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.8/schema.json",
|
|
3
3
|
|
|
4
4
|
// MARK: assist
|
|
5
5
|
"assist": {
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
// MARK: vcs
|
|
75
75
|
"vcs": {
|
|
76
76
|
"clientKind": "git",
|
|
77
|
+
"enabled": true,
|
|
77
78
|
"defaultBranch": "main",
|
|
78
79
|
"useIgnoreFile": true
|
|
79
80
|
}
|
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.
|
|
6
|
+
"version": "1.3.4",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "aleksei@dvashim.dev",
|
|
9
9
|
"name": "Aleksei Reznichenko"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@biomejs/biome": "^2.4.
|
|
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.
|
|
15
|
+
"validate-package-exports": "^0.22.0"
|
|
16
16
|
},
|
|
17
17
|
"exports": {
|
|
18
18
|
".": "./dist/biome.recommended.jsonc",
|