@biomejs/biome 1.9.3 → 1.9.5-nightly.4713c52
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.hi.md +1 -1
- package/README.ja.md +1 -1
- package/README.kr.md +1 -1
- package/README.md +1 -1
- package/README.pt-BR.md +1 -1
- package/README.zh-CN.md +1 -1
- package/README.zh-TW.md +1 -1
- package/configuration_schema.json +291 -29
- package/package.json +9 -9
package/README.hi.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
[![Open VSX version][open-vsx-badge]][open-vsx-url]
|
|
16
16
|
|
|
17
17
|
[discord-badge]: https://badgen.net/discord/online-members/BypW39g6Yc?icon=discord&label=discord&color=green
|
|
18
|
-
[discord-url]: https://
|
|
18
|
+
[discord-url]: https://biomejs.dev/chat
|
|
19
19
|
[ci-badge]: https://github.com/biomejs/biome/actions/workflows/main.yml/badge.svg
|
|
20
20
|
[ci-url]: https://github.com/biomejs/biome/actions/workflows/main.yml
|
|
21
21
|
[npm-badge]: https://badgen.net/npm/v/@biomejs/biome?icon=npm&color=green&label=%40biomejs%2Fbiome
|
package/README.ja.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
[![Open VSX version][open-vsx-badge]][open-vsx-url]
|
|
16
16
|
|
|
17
17
|
[discord-badge]: https://badgen.net/discord/online-members/BypW39g6Yc?icon=discord&label=discord&color=green
|
|
18
|
-
[discord-url]: https://
|
|
18
|
+
[discord-url]: https://biomejs.dev/chat
|
|
19
19
|
[ci-badge]: https://github.com/biomejs/biome/actions/workflows/main.yml/badge.svg
|
|
20
20
|
[ci-url]: https://github.com/biomejs/biome/actions/workflows/main.yml
|
|
21
21
|
[npm-badge]: https://badgen.net/npm/v/@biomejs/biome?icon=npm&color=green&label=%40biomejs%2Fbiome
|
package/README.kr.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
[![Open VSX version][open-vsx-badge]][open-vsx-url]
|
|
16
16
|
|
|
17
17
|
[discord-badge]: https://badgen.net/discord/online-members/BypW39g6Yc?icon=discord&label=discord&color=green
|
|
18
|
-
[discord-url]: https://
|
|
18
|
+
[discord-url]: https://biomejs.dev/chat
|
|
19
19
|
[ci-badge]: https://github.com/biomejs/biome/actions/workflows/main.yml/badge.svg
|
|
20
20
|
[ci-url]: https://github.com/biomejs/biome/actions/workflows/main.yml
|
|
21
21
|
[npm-badge]: https://badgen.net/npm/v/@biomejs/biome?icon=npm&color=green&label=%40biomejs%2Fbiome
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
[ci-badge]: https://github.com/biomejs/biome/actions/workflows/main.yml/badge.svg
|
|
19
19
|
[ci-url]: https://github.com/biomejs/biome/actions/workflows/main.yml
|
|
20
20
|
[discord-badge]: https://badgen.net/discord/online-members/BypW39g6Yc?icon=discord&label=discord&color=60a5fa
|
|
21
|
-
[discord-url]: https://
|
|
21
|
+
[discord-url]: https://biomejs.dev/chat
|
|
22
22
|
[npm-badge]: https://badgen.net/npm/v/@biomejs/biome?icon=npm&color=60a5fa&label=%40biomejs%2Fbiome
|
|
23
23
|
[npm-url]: https://www.npmjs.com/package/@biomejs/biome/v/latest
|
|
24
24
|
[vscode-badge]: https://badgen.net/vs-marketplace/v/biomejs.biome?label=vscode&icon=visualstudio&color=60a5fa
|
package/README.pt-BR.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
[![versão Open VSX][open-vsx-badge]][open-vsx-url]
|
|
16
16
|
|
|
17
17
|
[discord-badge]: https://badgen.net/discord/online-members/BypW39g6Yc?icon=discord&label=discord&color=green
|
|
18
|
-
[discord-url]: https://
|
|
18
|
+
[discord-url]: https://biomejs.dev/chat
|
|
19
19
|
[ci-badge]: https://github.com/biomejs/biome/actions/workflows/main.yml/badge.svg
|
|
20
20
|
[ci-url]: https://github.com/biomejs/biome/actions/workflows/main.yml
|
|
21
21
|
[npm-badge]: https://badgen.net/npm/v/@biomejs/biome?icon=npm&color=green&label=%40biomejs%2Fbiome
|
package/README.zh-CN.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
[![Open VSX version][open-vsx-badge]][open-vsx-url]
|
|
16
16
|
|
|
17
17
|
[discord-badge]: https://badgen.net/discord/online-members/BypW39g6Yc?icon=discord&label=discord&color=green
|
|
18
|
-
[discord-url]: https://
|
|
18
|
+
[discord-url]: https://biomejs.dev/chat
|
|
19
19
|
[ci-badge]: https://github.com/biomejs/biome/actions/workflows/main.yml/badge.svg
|
|
20
20
|
[ci-url]: https://github.com/biomejs/biome/actions/workflows/main.yml
|
|
21
21
|
[npm-badge]: https://badgen.net/npm/v/@biomejs/biome?icon=npm&color=green&label=%40biomejs%2Fbiome
|
package/README.zh-TW.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
[![Open VSX version][open-vsx-badge]][open-vsx-url]
|
|
16
16
|
|
|
17
17
|
[discord-badge]: https://badgen.net/discord/online-members/BypW39g6Yc?icon=discord&label=discord&color=green
|
|
18
|
-
[discord-url]: https://
|
|
18
|
+
[discord-url]: https://biomejs.dev/chat
|
|
19
19
|
[ci-badge]: https://github.com/biomejs/biome/actions/workflows/main.yml/badge.svg
|
|
20
20
|
[ci-url]: https://github.com/biomejs/biome/actions/workflows/main.yml
|
|
21
21
|
[npm-badge]: https://badgen.net/npm/v/@biomejs/biome?icon=npm&color=green&label=%40biomejs%2Fbiome
|
|
@@ -360,7 +360,6 @@
|
|
|
360
360
|
},
|
|
361
361
|
"AllowDomainOptions": {
|
|
362
362
|
"type": "object",
|
|
363
|
-
"required": ["allowDomains"],
|
|
364
363
|
"properties": {
|
|
365
364
|
"allowDomains": {
|
|
366
365
|
"description": "List of domains to allow `target=\"_blank\"` without `rel=\"noreferrer\"`",
|
|
@@ -643,10 +642,10 @@
|
|
|
643
642
|
"ComplexityOptions": {
|
|
644
643
|
"description": "Options for the rule `noExcessiveCognitiveComplexity`.",
|
|
645
644
|
"type": "object",
|
|
646
|
-
"required": ["maxAllowedComplexity"],
|
|
647
645
|
"properties": {
|
|
648
646
|
"maxAllowedComplexity": {
|
|
649
647
|
"description": "The maximum complexity score that we allow. Anything higher is considered excessive.",
|
|
648
|
+
"default": 15,
|
|
650
649
|
"type": "integer",
|
|
651
650
|
"format": "uint8",
|
|
652
651
|
"minimum": 1.0
|
|
@@ -676,9 +675,11 @@
|
|
|
676
675
|
},
|
|
677
676
|
"ConsistentArrayTypeOptions": {
|
|
678
677
|
"type": "object",
|
|
679
|
-
"required": ["syntax"],
|
|
680
678
|
"properties": {
|
|
681
|
-
"syntax": {
|
|
679
|
+
"syntax": {
|
|
680
|
+
"default": "shorthand",
|
|
681
|
+
"allOf": [{ "$ref": "#/definitions/ConsistentArrayType" }]
|
|
682
|
+
}
|
|
682
683
|
},
|
|
683
684
|
"additionalProperties": false
|
|
684
685
|
},
|
|
@@ -690,9 +691,11 @@
|
|
|
690
691
|
},
|
|
691
692
|
"ConsistentMemberAccessibilityOptions": {
|
|
692
693
|
"type": "object",
|
|
693
|
-
"required": ["accessibility"],
|
|
694
694
|
"properties": {
|
|
695
|
-
"accessibility": {
|
|
695
|
+
"accessibility": {
|
|
696
|
+
"default": "noPublic",
|
|
697
|
+
"allOf": [{ "$ref": "#/definitions/Accessibility" }]
|
|
698
|
+
}
|
|
696
699
|
},
|
|
697
700
|
"additionalProperties": false
|
|
698
701
|
},
|
|
@@ -1202,10 +1205,9 @@
|
|
|
1202
1205
|
},
|
|
1203
1206
|
"CustomRestrictedTypeOptions": {
|
|
1204
1207
|
"type": "object",
|
|
1205
|
-
"required": ["message"],
|
|
1206
1208
|
"properties": {
|
|
1207
|
-
"message": { "type": "string" },
|
|
1208
|
-
"use": { "type": ["string", "null"] }
|
|
1209
|
+
"message": { "default": "", "type": "string" },
|
|
1210
|
+
"use": { "default": null, "type": ["string", "null"] }
|
|
1209
1211
|
},
|
|
1210
1212
|
"additionalProperties": false
|
|
1211
1213
|
},
|
|
@@ -1265,6 +1267,10 @@
|
|
|
1265
1267
|
"description": "Allowed cases for file names.",
|
|
1266
1268
|
"allOf": [{ "$ref": "#/definitions/FilenameCases" }]
|
|
1267
1269
|
},
|
|
1270
|
+
"match": {
|
|
1271
|
+
"description": "Regular expression to enforce",
|
|
1272
|
+
"anyOf": [{ "$ref": "#/definitions/Regex" }, { "type": "null" }]
|
|
1273
|
+
},
|
|
1268
1274
|
"requireAscii": {
|
|
1269
1275
|
"description": "If `false`, then non-ASCII characters are allowed.",
|
|
1270
1276
|
"type": "boolean"
|
|
@@ -1460,23 +1466,29 @@
|
|
|
1460
1466
|
},
|
|
1461
1467
|
"Hook": {
|
|
1462
1468
|
"type": "object",
|
|
1463
|
-
"required": ["name"],
|
|
1464
1469
|
"properties": {
|
|
1465
1470
|
"closureIndex": {
|
|
1466
1471
|
"description": "The \"position\" of the closure function, starting from zero.\n\nFor example, for React's `useEffect()` hook, the closure index is 0.",
|
|
1472
|
+
"default": null,
|
|
1467
1473
|
"type": ["integer", "null"],
|
|
1468
1474
|
"format": "uint8",
|
|
1469
1475
|
"minimum": 0.0
|
|
1470
1476
|
},
|
|
1471
1477
|
"dependenciesIndex": {
|
|
1472
1478
|
"description": "The \"position\" of the array of dependencies, starting from zero.\n\nFor example, for React's `useEffect()` hook, the dependencies index is 1.",
|
|
1479
|
+
"default": null,
|
|
1473
1480
|
"type": ["integer", "null"],
|
|
1474
1481
|
"format": "uint8",
|
|
1475
1482
|
"minimum": 0.0
|
|
1476
1483
|
},
|
|
1477
|
-
"name": {
|
|
1484
|
+
"name": {
|
|
1485
|
+
"description": "The name of the hook.",
|
|
1486
|
+
"default": "",
|
|
1487
|
+
"type": "string"
|
|
1488
|
+
},
|
|
1478
1489
|
"stableResult": {
|
|
1479
1490
|
"description": "Whether the result of the hook is stable.\n\nSet to `true` to mark the identity of the hook's return value as stable, or use a number/an array of numbers to mark the \"positions\" in the return array as stable.\n\nFor example, for React's `useRef()` hook the value would be `true`, while for `useState()` it would be `[1]`.",
|
|
1491
|
+
"default": null,
|
|
1480
1492
|
"anyOf": [
|
|
1481
1493
|
{ "$ref": "#/definitions/StableHookResult" },
|
|
1482
1494
|
{ "type": "null" }
|
|
@@ -1485,6 +1497,12 @@
|
|
|
1485
1497
|
},
|
|
1486
1498
|
"additionalProperties": false
|
|
1487
1499
|
},
|
|
1500
|
+
"ImportGroup": {
|
|
1501
|
+
"anyOf": [
|
|
1502
|
+
{ "$ref": "#/definitions/PredefinedImportGroup" },
|
|
1503
|
+
{ "$ref": "#/definitions/Regex" }
|
|
1504
|
+
]
|
|
1505
|
+
},
|
|
1488
1506
|
"IndentStyle": {
|
|
1489
1507
|
"oneOf": [
|
|
1490
1508
|
{ "description": "Tab", "type": "string", "enum": ["tab"] },
|
|
@@ -1660,6 +1678,10 @@
|
|
|
1660
1678
|
"description": "Options that changes how the JavaScript parser behaves",
|
|
1661
1679
|
"type": "object",
|
|
1662
1680
|
"properties": {
|
|
1681
|
+
"gritMetavariables": {
|
|
1682
|
+
"description": "Enables parsing of Grit metavariables. Defaults to `false`.",
|
|
1683
|
+
"type": ["boolean", "null"]
|
|
1684
|
+
},
|
|
1663
1685
|
"unsafeParameterDecoratorsEnabled": {
|
|
1664
1686
|
"description": "It enables the experimental and unsafe parsing of parameter decorators\n\nThese decorators belong to an old proposal, and they are subject to change.",
|
|
1665
1687
|
"type": ["boolean", "null"]
|
|
@@ -2040,9 +2062,9 @@
|
|
|
2040
2062
|
},
|
|
2041
2063
|
"NoRestrictedTypesOptions": {
|
|
2042
2064
|
"type": "object",
|
|
2043
|
-
"required": ["types"],
|
|
2044
2065
|
"properties": {
|
|
2045
2066
|
"types": {
|
|
2067
|
+
"default": {},
|
|
2046
2068
|
"type": "object",
|
|
2047
2069
|
"additionalProperties": {
|
|
2048
2070
|
"$ref": "#/definitions/CustomRestrictedType"
|
|
@@ -2051,6 +2073,24 @@
|
|
|
2051
2073
|
},
|
|
2052
2074
|
"additionalProperties": false
|
|
2053
2075
|
},
|
|
2076
|
+
"NoSecretsConfiguration": {
|
|
2077
|
+
"anyOf": [
|
|
2078
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2079
|
+
{ "$ref": "#/definitions/RuleWithNoSecretsOptions" }
|
|
2080
|
+
]
|
|
2081
|
+
},
|
|
2082
|
+
"NoSecretsOptions": {
|
|
2083
|
+
"type": "object",
|
|
2084
|
+
"properties": {
|
|
2085
|
+
"entropyThreshold": {
|
|
2086
|
+
"description": "Set entropy threshold (default is 41).",
|
|
2087
|
+
"type": ["integer", "null"],
|
|
2088
|
+
"format": "uint16",
|
|
2089
|
+
"minimum": 0.0
|
|
2090
|
+
}
|
|
2091
|
+
},
|
|
2092
|
+
"additionalProperties": false
|
|
2093
|
+
},
|
|
2054
2094
|
"Nursery": {
|
|
2055
2095
|
"description": "A list of rules that belong to this group",
|
|
2056
2096
|
"type": "object",
|
|
@@ -2073,6 +2113,20 @@
|
|
|
2073
2113
|
{ "type": "null" }
|
|
2074
2114
|
]
|
|
2075
2115
|
},
|
|
2116
|
+
"noDocumentCookie": {
|
|
2117
|
+
"description": "Disallow direct assignments to document.cookie.",
|
|
2118
|
+
"anyOf": [
|
|
2119
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2120
|
+
{ "type": "null" }
|
|
2121
|
+
]
|
|
2122
|
+
},
|
|
2123
|
+
"noDocumentImportInPage": {
|
|
2124
|
+
"description": "Prevents importing next/document outside of pages/_document.jsx in Next.js projects.",
|
|
2125
|
+
"anyOf": [
|
|
2126
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2127
|
+
{ "type": "null" }
|
|
2128
|
+
]
|
|
2129
|
+
},
|
|
2076
2130
|
"noDuplicateCustomProperties": {
|
|
2077
2131
|
"description": "Disallow duplicate custom properties within declaration blocks.",
|
|
2078
2132
|
"anyOf": [
|
|
@@ -2087,6 +2141,13 @@
|
|
|
2087
2141
|
{ "type": "null" }
|
|
2088
2142
|
]
|
|
2089
2143
|
},
|
|
2144
|
+
"noDuplicateProperties": {
|
|
2145
|
+
"description": "Disallow duplicate properties within declaration blocks.",
|
|
2146
|
+
"anyOf": [
|
|
2147
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2148
|
+
{ "type": "null" }
|
|
2149
|
+
]
|
|
2150
|
+
},
|
|
2090
2151
|
"noDuplicatedFields": {
|
|
2091
2152
|
"description": "No duplicated fields in GraphQL operations.",
|
|
2092
2153
|
"anyOf": [
|
|
@@ -2115,6 +2176,27 @@
|
|
|
2115
2176
|
{ "type": "null" }
|
|
2116
2177
|
]
|
|
2117
2178
|
},
|
|
2179
|
+
"noHeadElement": {
|
|
2180
|
+
"description": "Prevent usage of \\<head> element in a Next.js project.",
|
|
2181
|
+
"anyOf": [
|
|
2182
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2183
|
+
{ "type": "null" }
|
|
2184
|
+
]
|
|
2185
|
+
},
|
|
2186
|
+
"noHeadImportInDocument": {
|
|
2187
|
+
"description": "Prevent using the next/head module in pages/_document.js on Next.js projects.",
|
|
2188
|
+
"anyOf": [
|
|
2189
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2190
|
+
{ "type": "null" }
|
|
2191
|
+
]
|
|
2192
|
+
},
|
|
2193
|
+
"noImgElement": {
|
|
2194
|
+
"description": "Prevent usage of \\<img> element in a Next.js project.",
|
|
2195
|
+
"anyOf": [
|
|
2196
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2197
|
+
{ "type": "null" }
|
|
2198
|
+
]
|
|
2199
|
+
},
|
|
2118
2200
|
"noIrregularWhitespace": {
|
|
2119
2201
|
"description": "Disallows the use of irregular whitespace characters.",
|
|
2120
2202
|
"anyOf": [
|
|
@@ -2167,7 +2249,7 @@
|
|
|
2167
2249
|
"noSecrets": {
|
|
2168
2250
|
"description": "Disallow usage of sensitive data such as API keys and tokens.",
|
|
2169
2251
|
"anyOf": [
|
|
2170
|
-
{ "$ref": "#/definitions/
|
|
2252
|
+
{ "$ref": "#/definitions/NoSecretsConfiguration" },
|
|
2171
2253
|
{ "type": "null" }
|
|
2172
2254
|
]
|
|
2173
2255
|
},
|
|
@@ -2206,6 +2288,13 @@
|
|
|
2206
2288
|
{ "type": "null" }
|
|
2207
2289
|
]
|
|
2208
2290
|
},
|
|
2291
|
+
"noUnknownTypeSelector": {
|
|
2292
|
+
"description": "Disallow unknown type selectors.",
|
|
2293
|
+
"anyOf": [
|
|
2294
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2295
|
+
{ "type": "null" }
|
|
2296
|
+
]
|
|
2297
|
+
},
|
|
2209
2298
|
"noUselessEscapeInRegex": {
|
|
2210
2299
|
"description": "Disallow unnecessary escape sequence in regular expression literals.",
|
|
2211
2300
|
"anyOf": [
|
|
@@ -2213,6 +2302,20 @@
|
|
|
2213
2302
|
{ "type": "null" }
|
|
2214
2303
|
]
|
|
2215
2304
|
},
|
|
2305
|
+
"noUselessStringRaw": {
|
|
2306
|
+
"description": "Disallow unnecessary String.raw function in template string literals without any escape sequence.",
|
|
2307
|
+
"anyOf": [
|
|
2308
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2309
|
+
{ "type": "null" }
|
|
2310
|
+
]
|
|
2311
|
+
},
|
|
2312
|
+
"noUselessUndefined": {
|
|
2313
|
+
"description": "Disallow the use of useless undefined.",
|
|
2314
|
+
"anyOf": [
|
|
2315
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2316
|
+
{ "type": "null" }
|
|
2317
|
+
]
|
|
2318
|
+
},
|
|
2216
2319
|
"noValueAtRule": {
|
|
2217
2320
|
"description": "Disallow use of @value rule in css modules.",
|
|
2218
2321
|
"anyOf": [
|
|
@@ -2238,6 +2341,20 @@
|
|
|
2238
2341
|
{ "type": "null" }
|
|
2239
2342
|
]
|
|
2240
2343
|
},
|
|
2344
|
+
"useAtIndex": {
|
|
2345
|
+
"description": "Use at() instead of integer index access.",
|
|
2346
|
+
"anyOf": [
|
|
2347
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2348
|
+
{ "type": "null" }
|
|
2349
|
+
]
|
|
2350
|
+
},
|
|
2351
|
+
"useCollapsedIf": {
|
|
2352
|
+
"description": "Enforce using single if instead of nested if clauses.",
|
|
2353
|
+
"anyOf": [
|
|
2354
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2355
|
+
{ "type": "null" }
|
|
2356
|
+
]
|
|
2357
|
+
},
|
|
2241
2358
|
"useComponentExportOnlyModules": {
|
|
2242
2359
|
"description": "Enforce declaring components only within modules that export React Components exclusively.",
|
|
2243
2360
|
"anyOf": [
|
|
@@ -2270,13 +2387,34 @@
|
|
|
2270
2387
|
{ "type": "null" }
|
|
2271
2388
|
]
|
|
2272
2389
|
},
|
|
2273
|
-
"
|
|
2390
|
+
"useExplicitType": {
|
|
2274
2391
|
"description": "Require explicit return types on functions and class methods.",
|
|
2275
2392
|
"anyOf": [
|
|
2276
2393
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2277
2394
|
{ "type": "null" }
|
|
2278
2395
|
]
|
|
2279
2396
|
},
|
|
2397
|
+
"useGoogleFontDisplay": {
|
|
2398
|
+
"description": "Enforces the use of a recommended display strategy with Google Fonts.",
|
|
2399
|
+
"anyOf": [
|
|
2400
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2401
|
+
{ "type": "null" }
|
|
2402
|
+
]
|
|
2403
|
+
},
|
|
2404
|
+
"useGoogleFontPreconnect": {
|
|
2405
|
+
"description": "Ensure the preconnect attribute is used when using Google Fonts.",
|
|
2406
|
+
"anyOf": [
|
|
2407
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2408
|
+
{ "type": "null" }
|
|
2409
|
+
]
|
|
2410
|
+
},
|
|
2411
|
+
"useGuardForIn": {
|
|
2412
|
+
"description": "Require for-in loops to include an if statement.",
|
|
2413
|
+
"anyOf": [
|
|
2414
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2415
|
+
{ "type": "null" }
|
|
2416
|
+
]
|
|
2417
|
+
},
|
|
2280
2418
|
"useImportRestrictions": {
|
|
2281
2419
|
"description": "Disallows package private imports.",
|
|
2282
2420
|
"anyOf": [
|
|
@@ -2284,6 +2422,13 @@
|
|
|
2284
2422
|
{ "type": "null" }
|
|
2285
2423
|
]
|
|
2286
2424
|
},
|
|
2425
|
+
"useNamedOperation": {
|
|
2426
|
+
"description": "Enforce specifying the name of GraphQL operations.",
|
|
2427
|
+
"anyOf": [
|
|
2428
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2429
|
+
{ "type": "null" }
|
|
2430
|
+
]
|
|
2431
|
+
},
|
|
2287
2432
|
"useSortedClasses": {
|
|
2288
2433
|
"description": "Enforce the sorting of CSS utility classes.",
|
|
2289
2434
|
"anyOf": [
|
|
@@ -2315,6 +2460,18 @@
|
|
|
2315
2460
|
},
|
|
2316
2461
|
"additionalProperties": false
|
|
2317
2462
|
},
|
|
2463
|
+
"Options": {
|
|
2464
|
+
"type": "object",
|
|
2465
|
+
"properties": {
|
|
2466
|
+
"importGroups": {
|
|
2467
|
+
"default": [],
|
|
2468
|
+
"type": "array",
|
|
2469
|
+
"items": { "$ref": "#/definitions/ImportGroup" }
|
|
2470
|
+
},
|
|
2471
|
+
"legacy": { "default": false, "type": "boolean" }
|
|
2472
|
+
},
|
|
2473
|
+
"additionalProperties": false
|
|
2474
|
+
},
|
|
2318
2475
|
"OrganizeImports": {
|
|
2319
2476
|
"type": "object",
|
|
2320
2477
|
"properties": {
|
|
@@ -2519,6 +2676,10 @@
|
|
|
2519
2676
|
},
|
|
2520
2677
|
"additionalProperties": false
|
|
2521
2678
|
},
|
|
2679
|
+
"PredefinedImportGroup": {
|
|
2680
|
+
"type": "string",
|
|
2681
|
+
"enum": [":blank-line:", ":bun:", ":node:", ":types:"]
|
|
2682
|
+
},
|
|
2522
2683
|
"QuoteProperties": { "type": "string", "enum": ["asNeeded", "preserve"] },
|
|
2523
2684
|
"QuoteStyle": { "type": "string", "enum": ["double", "single"] },
|
|
2524
2685
|
"Regex": { "type": "string" },
|
|
@@ -2531,7 +2692,6 @@
|
|
|
2531
2692
|
"RestrictedGlobalsOptions": {
|
|
2532
2693
|
"description": "Options for the rule `noRestrictedGlobals`.",
|
|
2533
2694
|
"type": "object",
|
|
2534
|
-
"required": ["deniedGlobals"],
|
|
2535
2695
|
"properties": {
|
|
2536
2696
|
"deniedGlobals": {
|
|
2537
2697
|
"description": "A list of names that should trigger the rule",
|
|
@@ -2550,7 +2710,6 @@
|
|
|
2550
2710
|
"RestrictedImportsOptions": {
|
|
2551
2711
|
"description": "Options for the rule `noRestrictedImports`.",
|
|
2552
2712
|
"type": "object",
|
|
2553
|
-
"required": ["paths"],
|
|
2554
2713
|
"properties": {
|
|
2555
2714
|
"paths": {
|
|
2556
2715
|
"description": "A list of names that should trigger the rule",
|
|
@@ -2564,7 +2723,46 @@
|
|
|
2564
2723
|
"type": "string",
|
|
2565
2724
|
"enum": ["abstract", "private", "protected", "readonly", "static"]
|
|
2566
2725
|
},
|
|
2567
|
-
"
|
|
2726
|
+
"RuleAssistConfiguration_for_Null": {
|
|
2727
|
+
"anyOf": [
|
|
2728
|
+
{ "$ref": "#/definitions/RuleAssistPlainConfiguration" },
|
|
2729
|
+
{ "$ref": "#/definitions/RuleAssistWithOptions_for_Null" }
|
|
2730
|
+
]
|
|
2731
|
+
},
|
|
2732
|
+
"RuleAssistConfiguration_for_Options": {
|
|
2733
|
+
"anyOf": [
|
|
2734
|
+
{ "$ref": "#/definitions/RuleAssistPlainConfiguration" },
|
|
2735
|
+
{ "$ref": "#/definitions/RuleAssistWithOptions_for_Options" }
|
|
2736
|
+
]
|
|
2737
|
+
},
|
|
2738
|
+
"RuleAssistPlainConfiguration": { "type": "string", "enum": ["on", "off"] },
|
|
2739
|
+
"RuleAssistWithOptions_for_Null": {
|
|
2740
|
+
"type": "object",
|
|
2741
|
+
"required": ["level", "options"],
|
|
2742
|
+
"properties": {
|
|
2743
|
+
"level": {
|
|
2744
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
2745
|
+
"allOf": [{ "$ref": "#/definitions/RuleAssistPlainConfiguration" }]
|
|
2746
|
+
},
|
|
2747
|
+
"options": { "description": "Rule's options", "type": "null" }
|
|
2748
|
+
},
|
|
2749
|
+
"additionalProperties": false
|
|
2750
|
+
},
|
|
2751
|
+
"RuleAssistWithOptions_for_Options": {
|
|
2752
|
+
"type": "object",
|
|
2753
|
+
"required": ["level", "options"],
|
|
2754
|
+
"properties": {
|
|
2755
|
+
"level": {
|
|
2756
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
2757
|
+
"allOf": [{ "$ref": "#/definitions/RuleAssistPlainConfiguration" }]
|
|
2758
|
+
},
|
|
2759
|
+
"options": {
|
|
2760
|
+
"description": "Rule's options",
|
|
2761
|
+
"allOf": [{ "$ref": "#/definitions/Options" }]
|
|
2762
|
+
}
|
|
2763
|
+
},
|
|
2764
|
+
"additionalProperties": false
|
|
2765
|
+
},
|
|
2568
2766
|
"RuleConfiguration": {
|
|
2569
2767
|
"anyOf": [
|
|
2570
2768
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
@@ -2798,6 +2996,21 @@
|
|
|
2798
2996
|
},
|
|
2799
2997
|
"additionalProperties": false
|
|
2800
2998
|
},
|
|
2999
|
+
"RuleWithNoSecretsOptions": {
|
|
3000
|
+
"type": "object",
|
|
3001
|
+
"required": ["level"],
|
|
3002
|
+
"properties": {
|
|
3003
|
+
"level": {
|
|
3004
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
3005
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
3006
|
+
},
|
|
3007
|
+
"options": {
|
|
3008
|
+
"description": "Rule's options",
|
|
3009
|
+
"allOf": [{ "$ref": "#/definitions/NoSecretsOptions" }]
|
|
3010
|
+
}
|
|
3011
|
+
},
|
|
3012
|
+
"additionalProperties": false
|
|
3013
|
+
},
|
|
2801
3014
|
"RuleWithRestrictedGlobalsOptions": {
|
|
2802
3015
|
"type": "object",
|
|
2803
3016
|
"required": ["level"],
|
|
@@ -2881,6 +3094,25 @@
|
|
|
2881
3094
|
},
|
|
2882
3095
|
"additionalProperties": false
|
|
2883
3096
|
},
|
|
3097
|
+
"RuleWithUseSelfClosingElementsOptions": {
|
|
3098
|
+
"type": "object",
|
|
3099
|
+
"required": ["level"],
|
|
3100
|
+
"properties": {
|
|
3101
|
+
"fix": {
|
|
3102
|
+
"description": "The kind of the code actions emitted by the rule",
|
|
3103
|
+
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
3104
|
+
},
|
|
3105
|
+
"level": {
|
|
3106
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
3107
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
3108
|
+
},
|
|
3109
|
+
"options": {
|
|
3110
|
+
"description": "Rule's options",
|
|
3111
|
+
"allOf": [{ "$ref": "#/definitions/UseSelfClosingElementsOptions" }]
|
|
3112
|
+
}
|
|
3113
|
+
},
|
|
3114
|
+
"additionalProperties": false
|
|
3115
|
+
},
|
|
2884
3116
|
"RuleWithUseValidAutocompleteOptions": {
|
|
2885
3117
|
"type": "object",
|
|
2886
3118
|
"required": ["level"],
|
|
@@ -3032,17 +3264,24 @@
|
|
|
3032
3264
|
"description": "A list of rules that belong to this group",
|
|
3033
3265
|
"type": "object",
|
|
3034
3266
|
"properties": {
|
|
3035
|
-
"
|
|
3036
|
-
"description": "
|
|
3267
|
+
"organizeImports": {
|
|
3268
|
+
"description": "Provides a whole-source code action to sort the imports in the file using import groups and natural ordering.",
|
|
3037
3269
|
"anyOf": [
|
|
3038
|
-
{ "$ref": "#/definitions/
|
|
3270
|
+
{ "$ref": "#/definitions/RuleAssistConfiguration_for_Options" },
|
|
3271
|
+
{ "type": "null" }
|
|
3272
|
+
]
|
|
3273
|
+
},
|
|
3274
|
+
"useSortedAttributes": {
|
|
3275
|
+
"description": "Enforce attribute sorting in JSX elements.",
|
|
3276
|
+
"anyOf": [
|
|
3277
|
+
{ "$ref": "#/definitions/RuleAssistConfiguration_for_Null" },
|
|
3039
3278
|
{ "type": "null" }
|
|
3040
3279
|
]
|
|
3041
3280
|
},
|
|
3042
3281
|
"useSortedKeys": {
|
|
3043
3282
|
"description": "Sorts the keys of a JSON object in natural order",
|
|
3044
3283
|
"anyOf": [
|
|
3045
|
-
{ "$ref": "#/definitions/
|
|
3284
|
+
{ "$ref": "#/definitions/RuleAssistConfiguration_for_Null" },
|
|
3046
3285
|
{ "type": "null" }
|
|
3047
3286
|
]
|
|
3048
3287
|
}
|
|
@@ -3368,7 +3607,7 @@
|
|
|
3368
3607
|
"useSelfClosingElements": {
|
|
3369
3608
|
"description": "Prevent extra closing tags for components without children",
|
|
3370
3609
|
"anyOf": [
|
|
3371
|
-
{ "$ref": "#/definitions/
|
|
3610
|
+
{ "$ref": "#/definitions/UseSelfClosingElementsConfiguration" },
|
|
3372
3611
|
{ "type": "null" }
|
|
3373
3612
|
]
|
|
3374
3613
|
},
|
|
@@ -3440,14 +3679,15 @@
|
|
|
3440
3679
|
},
|
|
3441
3680
|
"SuggestedExtensionMapping": {
|
|
3442
3681
|
"type": "object",
|
|
3443
|
-
"required": ["component", "module"],
|
|
3444
3682
|
"properties": {
|
|
3445
3683
|
"component": {
|
|
3446
3684
|
"description": "Extension that should be used for component file imports",
|
|
3685
|
+
"default": "",
|
|
3447
3686
|
"type": "string"
|
|
3448
3687
|
},
|
|
3449
3688
|
"module": {
|
|
3450
3689
|
"description": "Extension that should be used for module imports",
|
|
3690
|
+
"default": "",
|
|
3451
3691
|
"type": "string"
|
|
3452
3692
|
}
|
|
3453
3693
|
},
|
|
@@ -3786,7 +4026,7 @@
|
|
|
3786
4026
|
"noPrototypeBuiltins": {
|
|
3787
4027
|
"description": "Disallow direct use of Object.prototype builtins.",
|
|
3788
4028
|
"anyOf": [
|
|
3789
|
-
{ "$ref": "#/definitions/
|
|
4029
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3790
4030
|
{ "type": "null" }
|
|
3791
4031
|
]
|
|
3792
4032
|
},
|
|
@@ -4009,6 +4249,11 @@
|
|
|
4009
4249
|
"type": "array",
|
|
4010
4250
|
"items": { "$ref": "#/definitions/Hook" }
|
|
4011
4251
|
},
|
|
4252
|
+
"reportMissingDependenciesArray": {
|
|
4253
|
+
"description": "Whether to report an error when a hook has no dependencies array.",
|
|
4254
|
+
"default": false,
|
|
4255
|
+
"type": "boolean"
|
|
4256
|
+
},
|
|
4012
4257
|
"reportUnnecessaryDependencies": {
|
|
4013
4258
|
"description": "Whether to report an error when a dependency is listed in the dependencies array but isn't used. Defaults to true.",
|
|
4014
4259
|
"default": true,
|
|
@@ -4025,10 +4270,10 @@
|
|
|
4025
4270
|
},
|
|
4026
4271
|
"UseImportExtensionsOptions": {
|
|
4027
4272
|
"type": "object",
|
|
4028
|
-
"required": ["suggestedExtensions"],
|
|
4029
4273
|
"properties": {
|
|
4030
4274
|
"suggestedExtensions": {
|
|
4031
4275
|
"description": "A map of custom import extension mappings, where the key is the inspected file extension, and the value is a pair of `module` extension and `component` import extension",
|
|
4276
|
+
"default": {},
|
|
4032
4277
|
"type": "object",
|
|
4033
4278
|
"additionalProperties": {
|
|
4034
4279
|
"$ref": "#/definitions/SuggestedExtensionMapping"
|
|
@@ -4037,6 +4282,20 @@
|
|
|
4037
4282
|
},
|
|
4038
4283
|
"additionalProperties": false
|
|
4039
4284
|
},
|
|
4285
|
+
"UseSelfClosingElementsConfiguration": {
|
|
4286
|
+
"anyOf": [
|
|
4287
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
4288
|
+
{ "$ref": "#/definitions/RuleWithUseSelfClosingElementsOptions" }
|
|
4289
|
+
]
|
|
4290
|
+
},
|
|
4291
|
+
"UseSelfClosingElementsOptions": {
|
|
4292
|
+
"description": "Options for the `useSelfClosingElements` rule.",
|
|
4293
|
+
"type": "object",
|
|
4294
|
+
"properties": {
|
|
4295
|
+
"ignoreHtmlElements": { "default": false, "type": "boolean" }
|
|
4296
|
+
},
|
|
4297
|
+
"additionalProperties": false
|
|
4298
|
+
},
|
|
4040
4299
|
"UseValidAutocompleteConfiguration": {
|
|
4041
4300
|
"anyOf": [
|
|
4042
4301
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
@@ -4045,10 +4304,10 @@
|
|
|
4045
4304
|
},
|
|
4046
4305
|
"UseValidAutocompleteOptions": {
|
|
4047
4306
|
"type": "object",
|
|
4048
|
-
"required": ["inputComponents"],
|
|
4049
4307
|
"properties": {
|
|
4050
4308
|
"inputComponents": {
|
|
4051
4309
|
"description": "`input` like custom components that should be checked.",
|
|
4310
|
+
"default": [],
|
|
4052
4311
|
"type": "array",
|
|
4053
4312
|
"items": { "type": "string" }
|
|
4054
4313
|
}
|
|
@@ -4085,10 +4344,13 @@
|
|
|
4085
4344
|
},
|
|
4086
4345
|
"ValidAriaRoleOptions": {
|
|
4087
4346
|
"type": "object",
|
|
4088
|
-
"required": ["allowInvalidRoles", "ignoreNonDom"],
|
|
4089
4347
|
"properties": {
|
|
4090
|
-
"allowInvalidRoles": {
|
|
4091
|
-
|
|
4348
|
+
"allowInvalidRoles": {
|
|
4349
|
+
"default": [],
|
|
4350
|
+
"type": "array",
|
|
4351
|
+
"items": { "type": "string" }
|
|
4352
|
+
},
|
|
4353
|
+
"ignoreNonDom": { "default": false, "type": "boolean" }
|
|
4092
4354
|
},
|
|
4093
4355
|
"additionalProperties": false
|
|
4094
4356
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biomejs/biome",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.5-nightly.4713c52",
|
|
4
4
|
"bin": {
|
|
5
5
|
"biome": "bin/biome"
|
|
6
6
|
},
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
"provenance": true
|
|
51
51
|
},
|
|
52
52
|
"optionalDependencies": {
|
|
53
|
-
"@biomejs/cli-win32-x64": "1.9.
|
|
54
|
-
"@biomejs/cli-win32-arm64": "1.9.
|
|
55
|
-
"@biomejs/cli-darwin-x64": "1.9.
|
|
56
|
-
"@biomejs/cli-darwin-arm64": "1.9.
|
|
57
|
-
"@biomejs/cli-linux-x64": "1.9.
|
|
58
|
-
"@biomejs/cli-linux-arm64": "1.9.
|
|
59
|
-
"@biomejs/cli-linux-x64-musl": "1.9.
|
|
60
|
-
"@biomejs/cli-linux-arm64-musl": "1.9.
|
|
53
|
+
"@biomejs/cli-win32-x64": "1.9.5-nightly.4713c52",
|
|
54
|
+
"@biomejs/cli-win32-arm64": "1.9.5-nightly.4713c52",
|
|
55
|
+
"@biomejs/cli-darwin-x64": "1.9.5-nightly.4713c52",
|
|
56
|
+
"@biomejs/cli-darwin-arm64": "1.9.5-nightly.4713c52",
|
|
57
|
+
"@biomejs/cli-linux-x64": "1.9.5-nightly.4713c52",
|
|
58
|
+
"@biomejs/cli-linux-arm64": "1.9.5-nightly.4713c52",
|
|
59
|
+
"@biomejs/cli-linux-x64-musl": "1.9.5-nightly.4713c52",
|
|
60
|
+
"@biomejs/cli-linux-arm64-musl": "1.9.5-nightly.4713c52"
|
|
61
61
|
}
|
|
62
62
|
}
|