@dvashim/biome-config 1.3.4 → 1.5.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 -2
- package/dist/biome.react-balanced.jsonc +16 -1
- package/dist/biome.react-recommended.jsonc +13 -1
- package/dist/biome.react-strict.jsonc +16 -1
- package/dist/biome.recommended.jsonc +13 -1
- package/package.json +21 -21
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.9/schema.json`
|
|
91
91
|
|
|
92
92
|
### Formatter
|
|
93
93
|
|
|
@@ -151,6 +151,12 @@ All configurations share the same base defaults.
|
|
|
151
151
|
| defaultBranch | `"main"` |
|
|
152
152
|
| useIgnoreFile | `true` |
|
|
153
153
|
|
|
154
|
+
### Overrides
|
|
155
|
+
|
|
156
|
+
| File pattern | Setting | Value |
|
|
157
|
+
|--------------|---------|-------|
|
|
158
|
+
| `package.json` | json.formatter.expand | `"always"` |
|
|
159
|
+
|
|
154
160
|
### Assist
|
|
155
161
|
|
|
156
162
|
| Option | Value |
|
|
@@ -182,14 +188,16 @@ The most opinionated configuration. Enables all recommended rules plus **180+ op
|
|
|
182
188
|
|
|
183
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.
|
|
184
190
|
|
|
185
|
-
- **nursery** (
|
|
191
|
+
- **nursery** (71 rules) — Opts into all experimental rules. Highlights include:
|
|
186
192
|
- **Errors:** `noJsxPropsBind`, `noLeakedRender`, `noMisusedPromises`, `noMultiAssign`, `noParametersOnlyUsedInRecursion`
|
|
187
193
|
- **Promises:** `noFloatingPromises`, `noNestedPromises`, `useAwaitThenable`
|
|
188
194
|
- **TypeScript:** `useConsistentEnumValueType`, `useConsistentMethodSignatures`, `useExhaustiveSwitchCases`, `useNullishCoalescing`
|
|
189
195
|
- **Regex:** `useNamedCaptureGroup`, `useUnicodeRegex`, `useRegexpExec`
|
|
196
|
+
- **Styling:** `noDuplicateSelectors`, `noInlineStyles`
|
|
190
197
|
- **Playwright:** Full suite of 10 Playwright rules
|
|
191
198
|
- **Drizzle:** `noDrizzleDeleteWithoutWhere`, `noDrizzleUpdateWithoutWhere`
|
|
192
199
|
- **Tailwind:** `useSortedClasses`, `noFloatingClasses`
|
|
200
|
+
- **Dependencies:** `noUntrustedLicenses`
|
|
193
201
|
- **Disabled:** `noTernary`, `useExplicitType`
|
|
194
202
|
|
|
195
203
|
- **performance** (6 rules) — Warns on `await` in loops, barrel files, `delete`, namespace imports, re-export all, and non-top-level regex.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.9/schema.json",
|
|
3
3
|
|
|
4
4
|
// MARK: assist
|
|
5
5
|
"assist": {
|
|
@@ -123,6 +123,7 @@
|
|
|
123
123
|
"noDuplicatedSpreadProps": "warn",
|
|
124
124
|
"noDuplicateEnumValueNames": "warn",
|
|
125
125
|
"noDuplicateEnumValues": "warn",
|
|
126
|
+
"noDuplicateSelectors": "warn",
|
|
126
127
|
"noEmptyObjectKeys": "warn",
|
|
127
128
|
"noEqualsToNull": "warn",
|
|
128
129
|
"noExcessiveClassesPerFile": "warn",
|
|
@@ -130,6 +131,7 @@
|
|
|
130
131
|
"noFloatingClasses": "warn",
|
|
131
132
|
"noFloatingPromises": "warn",
|
|
132
133
|
"noForIn": "warn",
|
|
134
|
+
"noInlineStyles": "warn",
|
|
133
135
|
"noJsxPropsBind": "error",
|
|
134
136
|
"noLeakedRender": "error",
|
|
135
137
|
"noMisusedPromises": "error",
|
|
@@ -158,6 +160,7 @@
|
|
|
158
160
|
"noUndeclaredEnvVars": "warn",
|
|
159
161
|
"noUnknownAttribute": "warn",
|
|
160
162
|
"noUnnecessaryConditions": "warn",
|
|
163
|
+
"noUntrustedLicenses": "warn",
|
|
161
164
|
"noUselessReturn": "info",
|
|
162
165
|
"useArraySome": "warn",
|
|
163
166
|
"useArraySortCompare": "warn",
|
|
@@ -303,6 +306,18 @@
|
|
|
303
306
|
}
|
|
304
307
|
},
|
|
305
308
|
|
|
309
|
+
// MARK: overrides
|
|
310
|
+
"overrides": [
|
|
311
|
+
{
|
|
312
|
+
"includes": ["package.json"],
|
|
313
|
+
"json": {
|
|
314
|
+
"formatter": {
|
|
315
|
+
"expand": "always"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
|
|
306
321
|
// MARK: vcs
|
|
307
322
|
"vcs": {
|
|
308
323
|
"clientKind": "git",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.9/schema.json",
|
|
3
3
|
|
|
4
4
|
// MARK: assist
|
|
5
5
|
"assist": {
|
|
@@ -74,6 +74,18 @@
|
|
|
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",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.9/schema.json",
|
|
3
3
|
|
|
4
4
|
// MARK: assist
|
|
5
5
|
"assist": {
|
|
@@ -118,6 +118,7 @@
|
|
|
118
118
|
"noDuplicatedSpreadProps": "warn",
|
|
119
119
|
"noDuplicateEnumValueNames": "warn",
|
|
120
120
|
"noDuplicateEnumValues": "warn",
|
|
121
|
+
"noDuplicateSelectors": "warn",
|
|
121
122
|
"noEmptyObjectKeys": "warn",
|
|
122
123
|
"noEqualsToNull": "warn",
|
|
123
124
|
"noExcessiveClassesPerFile": "warn",
|
|
@@ -126,6 +127,7 @@
|
|
|
126
127
|
"noFloatingPromises": "warn",
|
|
127
128
|
"noForIn": "warn",
|
|
128
129
|
"noIncrementDecrement": "warn",
|
|
130
|
+
"noInlineStyles": "warn",
|
|
129
131
|
"noJsxPropsBind": "error",
|
|
130
132
|
"noLeakedRender": "error",
|
|
131
133
|
"noMisusedPromises": "error",
|
|
@@ -154,6 +156,7 @@
|
|
|
154
156
|
"noUndeclaredEnvVars": "warn",
|
|
155
157
|
"noUnknownAttribute": "warn",
|
|
156
158
|
"noUnnecessaryConditions": "warn",
|
|
159
|
+
"noUntrustedLicenses": "warn",
|
|
157
160
|
"noUselessReturn": "warn",
|
|
158
161
|
"useArraySome": "warn",
|
|
159
162
|
"useArraySortCompare": "warn",
|
|
@@ -293,6 +296,18 @@
|
|
|
293
296
|
}
|
|
294
297
|
},
|
|
295
298
|
|
|
299
|
+
// MARK: overrides
|
|
300
|
+
"overrides": [
|
|
301
|
+
{
|
|
302
|
+
"includes": ["package.json"],
|
|
303
|
+
"json": {
|
|
304
|
+
"formatter": {
|
|
305
|
+
"expand": "always"
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
|
|
296
311
|
// MARK: vcs
|
|
297
312
|
"vcs": {
|
|
298
313
|
"clientKind": "git",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.4.9/schema.json",
|
|
3
3
|
|
|
4
4
|
// MARK: assist
|
|
5
5
|
"assist": {
|
|
@@ -71,6 +71,18 @@
|
|
|
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",
|
package/package.json
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
+
"name": "@dvashim/biome-config",
|
|
3
|
+
"version": "1.5.0",
|
|
2
4
|
"description": "Shared Biome Configurations",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"biome",
|
|
7
|
+
"config",
|
|
8
|
+
"formatter",
|
|
9
|
+
"lint"
|
|
10
|
+
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/dvashim/biome-config.git"
|
|
14
|
+
},
|
|
3
15
|
"license": "MIT",
|
|
4
|
-
"name": "@dvashim/biome-config",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"version": "1.3.4",
|
|
7
16
|
"author": {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
},
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"@biomejs/biome": "^2.4.8",
|
|
13
|
-
"@changesets/changelog-github": "^0.6.0",
|
|
14
|
-
"@changesets/cli": "^2.30.0",
|
|
15
|
-
"validate-package-exports": "^0.22.0"
|
|
17
|
+
"name": "Aleksei Reznichenko",
|
|
18
|
+
"email": "aleksei@dvashim.dev"
|
|
16
19
|
},
|
|
20
|
+
"type": "module",
|
|
17
21
|
"exports": {
|
|
18
22
|
".": "./dist/biome.recommended.jsonc",
|
|
19
23
|
"./react-balanced": "./dist/biome.react-balanced.jsonc",
|
|
@@ -27,19 +31,15 @@
|
|
|
27
31
|
"files": [
|
|
28
32
|
"dist"
|
|
29
33
|
],
|
|
30
|
-
"
|
|
31
|
-
"biome",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@biomejs/biome": "^2.4.9",
|
|
36
|
+
"@changesets/changelog-github": "^0.6.0",
|
|
37
|
+
"@changesets/cli": "^2.30.0",
|
|
38
|
+
"validate-package-exports": "^0.23.0"
|
|
39
|
+
},
|
|
36
40
|
"publishConfig": {
|
|
37
41
|
"access": "public"
|
|
38
42
|
},
|
|
39
|
-
"repository": {
|
|
40
|
-
"type": "git",
|
|
41
|
-
"url": "https://github.com/dvashim/biome-config.git"
|
|
42
|
-
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"changeset": "changeset",
|
|
45
45
|
"check": "pnpm run \"/^check:.*/\"",
|