@biomejs/biome 2.0.0-beta → 2.0.0-beta.2
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.fr.md +32 -13
- package/README.hi.md +32 -14
- package/README.ja.md +32 -13
- package/README.kr.md +32 -13
- package/README.md +32 -13
- package/README.pt-BR.md +32 -13
- package/README.ru.md +32 -13
- package/README.uk.md +32 -13
- package/README.zh-CN.md +32 -13
- package/README.zh-TW.md +32 -13
- package/configuration_schema.json +250 -72
- package/package.json +9 -9
|
@@ -134,13 +134,6 @@
|
|
|
134
134
|
{ "type": "null" }
|
|
135
135
|
]
|
|
136
136
|
},
|
|
137
|
-
"noBlankTarget": {
|
|
138
|
-
"description": "Disallow target=\"_blank\" attribute without rel=\"noreferrer\"",
|
|
139
|
-
"anyOf": [
|
|
140
|
-
{ "$ref": "#/definitions/AllowDomainConfiguration" },
|
|
141
|
-
{ "type": "null" }
|
|
142
|
-
]
|
|
143
|
-
},
|
|
144
137
|
"noDistractingElements": {
|
|
145
138
|
"description": "Enforces that no distracting elements are used.",
|
|
146
139
|
"anyOf": [
|
|
@@ -368,23 +361,6 @@
|
|
|
368
361
|
},
|
|
369
362
|
"additionalProperties": false
|
|
370
363
|
},
|
|
371
|
-
"AllowDomainConfiguration": {
|
|
372
|
-
"anyOf": [
|
|
373
|
-
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
374
|
-
{ "$ref": "#/definitions/RuleWithAllowDomainOptions" }
|
|
375
|
-
]
|
|
376
|
-
},
|
|
377
|
-
"AllowDomainOptions": {
|
|
378
|
-
"type": "object",
|
|
379
|
-
"properties": {
|
|
380
|
-
"allowDomains": {
|
|
381
|
-
"description": "List of domains to allow `target=\"_blank\"` without `rel=\"noreferrer\"`",
|
|
382
|
-
"type": "array",
|
|
383
|
-
"items": { "type": "string" }
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
"additionalProperties": false
|
|
387
|
-
},
|
|
388
364
|
"ArrowParentheses": { "type": "string", "enum": ["always", "asNeeded"] },
|
|
389
365
|
"AssistConfiguration": {
|
|
390
366
|
"type": "object",
|
|
@@ -394,13 +370,13 @@
|
|
|
394
370
|
"anyOf": [{ "$ref": "#/definitions/Actions" }, { "type": "null" }]
|
|
395
371
|
},
|
|
396
372
|
"enabled": {
|
|
397
|
-
"description": "Whether Biome should enable assist via LSP.",
|
|
373
|
+
"description": "Whether Biome should enable assist via LSP and CLI.",
|
|
398
374
|
"anyOf": [{ "$ref": "#/definitions/Bool" }, { "type": "null" }]
|
|
399
375
|
},
|
|
400
376
|
"includes": {
|
|
401
377
|
"description": "A list of glob patterns. Biome will include files/folders that will match these patterns.",
|
|
402
378
|
"type": ["array", "null"],
|
|
403
|
-
"items": { "$ref": "#/definitions/
|
|
379
|
+
"items": { "$ref": "#/definitions/NormalizedGlob" }
|
|
404
380
|
}
|
|
405
381
|
},
|
|
406
382
|
"additionalProperties": false
|
|
@@ -890,7 +866,7 @@
|
|
|
890
866
|
]
|
|
891
867
|
},
|
|
892
868
|
"noPrivateImports": {
|
|
893
|
-
"description": "
|
|
869
|
+
"description": "Restrict imports of private exports.",
|
|
894
870
|
"anyOf": [
|
|
895
871
|
{ "$ref": "#/definitions/NoPrivateImportsConfiguration" },
|
|
896
872
|
{ "type": "null" }
|
|
@@ -1242,6 +1218,11 @@
|
|
|
1242
1218
|
},
|
|
1243
1219
|
"additionalProperties": false
|
|
1244
1220
|
},
|
|
1221
|
+
"CustomRestrictedElements": {
|
|
1222
|
+
"type": "object",
|
|
1223
|
+
"minProperties": 1,
|
|
1224
|
+
"additionalProperties": { "type": "string" }
|
|
1225
|
+
},
|
|
1245
1226
|
"CustomRestrictedImport": {
|
|
1246
1227
|
"anyOf": [
|
|
1247
1228
|
{
|
|
@@ -1403,7 +1384,7 @@
|
|
|
1403
1384
|
"includes": {
|
|
1404
1385
|
"description": "A list of glob patterns. Biome will handle only those files/folders that will match these patterns.",
|
|
1405
1386
|
"type": ["array", "null"],
|
|
1406
|
-
"items": { "$ref": "#/definitions/
|
|
1387
|
+
"items": { "$ref": "#/definitions/NormalizedGlob" }
|
|
1407
1388
|
},
|
|
1408
1389
|
"maxSize": {
|
|
1409
1390
|
"description": "The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB",
|
|
@@ -1481,7 +1462,7 @@
|
|
|
1481
1462
|
"includes": {
|
|
1482
1463
|
"description": "A list of glob patterns. The formatter will include files/folders that will match these patterns.",
|
|
1483
1464
|
"type": ["array", "null"],
|
|
1484
|
-
"items": { "$ref": "#/definitions/
|
|
1465
|
+
"items": { "$ref": "#/definitions/NormalizedGlob" }
|
|
1485
1466
|
},
|
|
1486
1467
|
"indentStyle": {
|
|
1487
1468
|
"description": "The indent style.",
|
|
@@ -1677,6 +1658,12 @@
|
|
|
1677
1658
|
},
|
|
1678
1659
|
"additionalProperties": false
|
|
1679
1660
|
},
|
|
1661
|
+
"GroupMatcher": {
|
|
1662
|
+
"anyOf": [
|
|
1663
|
+
{ "$ref": "#/definitions/ImportMatcher" },
|
|
1664
|
+
{ "$ref": "#/definitions/SourceMatcher" }
|
|
1665
|
+
]
|
|
1666
|
+
},
|
|
1680
1667
|
"GroupPlainConfiguration": {
|
|
1681
1668
|
"oneOf": [
|
|
1682
1669
|
{
|
|
@@ -1805,6 +1792,13 @@
|
|
|
1805
1792
|
"description": "What's the max width of a line applied to HTML (and its super languages) files. Defaults to 80.",
|
|
1806
1793
|
"anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
|
|
1807
1794
|
},
|
|
1795
|
+
"selfCloseVoidElements": {
|
|
1796
|
+
"description": "Whether void elements should be self-closed. Defaults to never.",
|
|
1797
|
+
"anyOf": [
|
|
1798
|
+
{ "$ref": "#/definitions/SelfCloseVoidElements" },
|
|
1799
|
+
{ "type": "null" }
|
|
1800
|
+
]
|
|
1801
|
+
},
|
|
1808
1802
|
"whitespaceSensitivity": {
|
|
1809
1803
|
"description": "Whether to account for whitespace sensitivity when formatting HTML (and its super languages). Defaults to \"css\".",
|
|
1810
1804
|
"anyOf": [
|
|
@@ -1821,22 +1815,44 @@
|
|
|
1821
1815
|
},
|
|
1822
1816
|
"ImportGroup": {
|
|
1823
1817
|
"anyOf": [
|
|
1824
|
-
{ "
|
|
1825
|
-
{ "$ref": "#/definitions/
|
|
1826
|
-
{
|
|
1827
|
-
"type": "array",
|
|
1828
|
-
"items": { "$ref": "#/definitions/ImportSourceGlob" }
|
|
1829
|
-
}
|
|
1818
|
+
{ "type": "null" },
|
|
1819
|
+
{ "$ref": "#/definitions/GroupMatcher" },
|
|
1820
|
+
{ "type": "array", "items": { "$ref": "#/definitions/GroupMatcher" } }
|
|
1830
1821
|
]
|
|
1831
1822
|
},
|
|
1832
1823
|
"ImportGroups": {
|
|
1833
1824
|
"type": "array",
|
|
1834
1825
|
"items": { "$ref": "#/definitions/ImportGroup" }
|
|
1835
1826
|
},
|
|
1827
|
+
"ImportMatcher": {
|
|
1828
|
+
"type": "object",
|
|
1829
|
+
"properties": {
|
|
1830
|
+
"source": {
|
|
1831
|
+
"anyOf": [
|
|
1832
|
+
{ "$ref": "#/definitions/SourcesMatcher" },
|
|
1833
|
+
{ "type": "null" }
|
|
1834
|
+
]
|
|
1835
|
+
},
|
|
1836
|
+
"type": { "type": ["boolean", "null"] }
|
|
1837
|
+
}
|
|
1838
|
+
},
|
|
1836
1839
|
"ImportSourceGlob": {
|
|
1837
1840
|
"description": "Glob to match against import sources.",
|
|
1838
1841
|
"allOf": [{ "$ref": "#/definitions/Glob" }]
|
|
1839
1842
|
},
|
|
1843
|
+
"ImportTypeConfiguration": {
|
|
1844
|
+
"anyOf": [
|
|
1845
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1846
|
+
{ "$ref": "#/definitions/RuleWithImportTypeOptions" }
|
|
1847
|
+
]
|
|
1848
|
+
},
|
|
1849
|
+
"ImportTypeOptions": {
|
|
1850
|
+
"description": "Rule's options.",
|
|
1851
|
+
"type": "object",
|
|
1852
|
+
"required": ["style"],
|
|
1853
|
+
"properties": { "style": { "$ref": "#/definitions/Style2" } },
|
|
1854
|
+
"additionalProperties": false
|
|
1855
|
+
},
|
|
1840
1856
|
"IndentScriptAndStyle": {
|
|
1841
1857
|
"description": "Whether to indent the content of `<script>` and `<style>` tags for HTML-ish templating languages (Vue, Svelte, etc.).\n\nWhen true, the content of `<script>` and `<style>` tags will be indented one level.",
|
|
1842
1858
|
"type": "boolean"
|
|
@@ -2292,7 +2308,7 @@
|
|
|
2292
2308
|
"includes": {
|
|
2293
2309
|
"description": "A list of glob patterns. The analyzer will handle only those files/folders that will match these patterns.",
|
|
2294
2310
|
"type": ["array", "null"],
|
|
2295
|
-
"items": { "$ref": "#/definitions/
|
|
2311
|
+
"items": { "$ref": "#/definitions/NormalizedGlob" }
|
|
2296
2312
|
},
|
|
2297
2313
|
"rules": {
|
|
2298
2314
|
"description": "List of rules",
|
|
@@ -2351,6 +2367,28 @@
|
|
|
2351
2367
|
},
|
|
2352
2368
|
"additionalProperties": false
|
|
2353
2369
|
},
|
|
2370
|
+
"NoBlankTargetConfiguration": {
|
|
2371
|
+
"anyOf": [
|
|
2372
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2373
|
+
{ "$ref": "#/definitions/RuleWithNoBlankTargetOptions" }
|
|
2374
|
+
]
|
|
2375
|
+
},
|
|
2376
|
+
"NoBlankTargetOptions": {
|
|
2377
|
+
"type": "object",
|
|
2378
|
+
"properties": {
|
|
2379
|
+
"allowDomains": {
|
|
2380
|
+
"description": "List of domains where `target=\"_blank\"` is allowed without `rel=\"noopener\"`.",
|
|
2381
|
+
"type": "array",
|
|
2382
|
+
"items": { "type": "string" }
|
|
2383
|
+
},
|
|
2384
|
+
"allowNoReferrer": {
|
|
2385
|
+
"description": "Whether `noreferrer` is allowed in addition to `noopener`.",
|
|
2386
|
+
"default": true,
|
|
2387
|
+
"type": "boolean"
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2390
|
+
"additionalProperties": false
|
|
2391
|
+
},
|
|
2354
2392
|
"NoConfusingLabelsConfiguration": {
|
|
2355
2393
|
"anyOf": [
|
|
2356
2394
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
@@ -2469,6 +2507,22 @@
|
|
|
2469
2507
|
},
|
|
2470
2508
|
"additionalProperties": false
|
|
2471
2509
|
},
|
|
2510
|
+
"NoRestrictedElementsConfiguration": {
|
|
2511
|
+
"anyOf": [
|
|
2512
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2513
|
+
{ "$ref": "#/definitions/RuleWithNoRestrictedElementsOptions" }
|
|
2514
|
+
]
|
|
2515
|
+
},
|
|
2516
|
+
"NoRestrictedElementsOptions": {
|
|
2517
|
+
"type": "object",
|
|
2518
|
+
"properties": {
|
|
2519
|
+
"elements": {
|
|
2520
|
+
"description": "Elements to restrict. Each key is the element name, and the value is the message to show when the element is used.",
|
|
2521
|
+
"allOf": [{ "$ref": "#/definitions/CustomRestrictedElements" }]
|
|
2522
|
+
}
|
|
2523
|
+
},
|
|
2524
|
+
"additionalProperties": false
|
|
2525
|
+
},
|
|
2472
2526
|
"NoRestrictedTypesConfiguration": {
|
|
2473
2527
|
"anyOf": [
|
|
2474
2528
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
@@ -2551,6 +2605,10 @@
|
|
|
2551
2605
|
},
|
|
2552
2606
|
"additionalProperties": false
|
|
2553
2607
|
},
|
|
2608
|
+
"NormalizedGlob": {
|
|
2609
|
+
"description": "Normalized Biome glob pattern that strips `./` from the pattern.",
|
|
2610
|
+
"allOf": [{ "$ref": "#/definitions/Glob" }]
|
|
2611
|
+
},
|
|
2554
2612
|
"Nursery": {
|
|
2555
2613
|
"description": "A list of rules that belong to this group",
|
|
2556
2614
|
"type": "object",
|
|
@@ -2702,6 +2760,13 @@
|
|
|
2702
2760
|
{ "type": "null" }
|
|
2703
2761
|
]
|
|
2704
2762
|
},
|
|
2763
|
+
"noImportantStyles": {
|
|
2764
|
+
"description": "Disallow the use of the !important style.",
|
|
2765
|
+
"anyOf": [
|
|
2766
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2767
|
+
{ "type": "null" }
|
|
2768
|
+
]
|
|
2769
|
+
},
|
|
2705
2770
|
"noIrregularWhitespace": {
|
|
2706
2771
|
"description": "Disallows the use of irregular whitespace characters.",
|
|
2707
2772
|
"anyOf": [
|
|
@@ -2751,6 +2816,13 @@
|
|
|
2751
2816
|
{ "type": "null" }
|
|
2752
2817
|
]
|
|
2753
2818
|
},
|
|
2819
|
+
"noRestrictedElements": {
|
|
2820
|
+
"description": "Disallow the use of configured elements.",
|
|
2821
|
+
"anyOf": [
|
|
2822
|
+
{ "$ref": "#/definitions/NoRestrictedElementsConfiguration" },
|
|
2823
|
+
{ "type": "null" }
|
|
2824
|
+
]
|
|
2825
|
+
},
|
|
2754
2826
|
"noRestrictedImports": {
|
|
2755
2827
|
"description": "Disallow specified modules when loaded by import or require.",
|
|
2756
2828
|
"anyOf": [
|
|
@@ -2828,6 +2900,13 @@
|
|
|
2828
2900
|
{ "type": "null" }
|
|
2829
2901
|
]
|
|
2830
2902
|
},
|
|
2903
|
+
"noUnresolvedImports": {
|
|
2904
|
+
"description": "Warn when importing non-existing exports.",
|
|
2905
|
+
"anyOf": [
|
|
2906
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2907
|
+
{ "type": "null" }
|
|
2908
|
+
]
|
|
2909
|
+
},
|
|
2831
2910
|
"noUnwantedPolyfillio": {
|
|
2832
2911
|
"description": "Prevent duplicate polyfills from Polyfill.io.",
|
|
2833
2912
|
"anyOf": [
|
|
@@ -2944,7 +3023,7 @@
|
|
|
2944
3023
|
]
|
|
2945
3024
|
},
|
|
2946
3025
|
"useExplicitType": {
|
|
2947
|
-
"description": "
|
|
3026
|
+
"description": "Enforce types in functions, methods, variables, and parameters.",
|
|
2948
3027
|
"anyOf": [
|
|
2949
3028
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2950
3029
|
{ "type": "null" }
|
|
@@ -2985,6 +3064,13 @@
|
|
|
2985
3064
|
{ "type": "null" }
|
|
2986
3065
|
]
|
|
2987
3066
|
},
|
|
3067
|
+
"useIterableCallbackReturn": {
|
|
3068
|
+
"description": "Enforce consistent return values in iterable callbacks.",
|
|
3069
|
+
"anyOf": [
|
|
3070
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
3071
|
+
{ "type": "null" }
|
|
3072
|
+
]
|
|
3073
|
+
},
|
|
2988
3074
|
"useNamedOperation": {
|
|
2989
3075
|
"description": "Enforce specifying the name of GraphQL operations.",
|
|
2990
3076
|
"anyOf": [
|
|
@@ -2999,6 +3085,13 @@
|
|
|
2999
3085
|
{ "type": "null" }
|
|
3000
3086
|
]
|
|
3001
3087
|
},
|
|
3088
|
+
"useNumericSeparators": {
|
|
3089
|
+
"description": "Enforce the use of numeric separators in numeric literals.",
|
|
3090
|
+
"anyOf": [
|
|
3091
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
3092
|
+
{ "type": "null" }
|
|
3093
|
+
]
|
|
3094
|
+
},
|
|
3002
3095
|
"useParseIntRadix": {
|
|
3003
3096
|
"description": "Enforce the consistent use of the radix argument when using parseInt().",
|
|
3004
3097
|
"anyOf": [
|
|
@@ -3289,19 +3382,7 @@
|
|
|
3289
3382
|
"type": "array",
|
|
3290
3383
|
"items": { "$ref": "#/definitions/PluginConfiguration" }
|
|
3291
3384
|
},
|
|
3292
|
-
"
|
|
3293
|
-
"type": "string",
|
|
3294
|
-
"enum": [
|
|
3295
|
-
":BLANK_LINE:",
|
|
3296
|
-
":ALIAS:",
|
|
3297
|
-
":BUN:",
|
|
3298
|
-
":NODE:",
|
|
3299
|
-
":PACKAGE:",
|
|
3300
|
-
":PACKAGE_WITH_PROTOCOL:",
|
|
3301
|
-
":PATH:",
|
|
3302
|
-
":URL:"
|
|
3303
|
-
]
|
|
3304
|
-
},
|
|
3385
|
+
"PredefinedGroupMatcher": { "type": "string" },
|
|
3305
3386
|
"QuoteProperties": { "type": "string", "enum": ["asNeeded", "preserve"] },
|
|
3306
3387
|
"QuoteStyle": { "type": "string", "enum": ["double", "single"] },
|
|
3307
3388
|
"Regex": { "type": "string" },
|
|
@@ -3317,8 +3398,8 @@
|
|
|
3317
3398
|
"properties": {
|
|
3318
3399
|
"deniedGlobals": {
|
|
3319
3400
|
"description": "A list of names that should trigger the rule",
|
|
3320
|
-
"type": "
|
|
3321
|
-
"
|
|
3401
|
+
"type": "object",
|
|
3402
|
+
"additionalProperties": { "type": "string" }
|
|
3322
3403
|
}
|
|
3323
3404
|
},
|
|
3324
3405
|
"additionalProperties": false
|
|
@@ -3411,6 +3492,11 @@
|
|
|
3411
3492
|
"description": "Next.js framework rules",
|
|
3412
3493
|
"type": "string",
|
|
3413
3494
|
"enum": ["next"]
|
|
3495
|
+
},
|
|
3496
|
+
{
|
|
3497
|
+
"description": "For rules that require querying multiple files inside a project",
|
|
3498
|
+
"type": "string",
|
|
3499
|
+
"enum": ["project"]
|
|
3414
3500
|
}
|
|
3415
3501
|
]
|
|
3416
3502
|
},
|
|
@@ -3469,25 +3555,6 @@
|
|
|
3469
3555
|
}
|
|
3470
3556
|
]
|
|
3471
3557
|
},
|
|
3472
|
-
"RuleWithAllowDomainOptions": {
|
|
3473
|
-
"type": "object",
|
|
3474
|
-
"required": ["level"],
|
|
3475
|
-
"properties": {
|
|
3476
|
-
"fix": {
|
|
3477
|
-
"description": "The kind of the code actions emitted by the rule",
|
|
3478
|
-
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
3479
|
-
},
|
|
3480
|
-
"level": {
|
|
3481
|
-
"description": "The severity of the emitted diagnostics by the rule",
|
|
3482
|
-
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
3483
|
-
},
|
|
3484
|
-
"options": {
|
|
3485
|
-
"description": "Rule's options",
|
|
3486
|
-
"allOf": [{ "$ref": "#/definitions/AllowDomainOptions" }]
|
|
3487
|
-
}
|
|
3488
|
-
},
|
|
3489
|
-
"additionalProperties": false
|
|
3490
|
-
},
|
|
3491
3558
|
"RuleWithComplexityOptions": {
|
|
3492
3559
|
"type": "object",
|
|
3493
3560
|
"required": ["level"],
|
|
@@ -3584,6 +3651,25 @@
|
|
|
3584
3651
|
},
|
|
3585
3652
|
"additionalProperties": false
|
|
3586
3653
|
},
|
|
3654
|
+
"RuleWithImportTypeOptions": {
|
|
3655
|
+
"type": "object",
|
|
3656
|
+
"required": ["level"],
|
|
3657
|
+
"properties": {
|
|
3658
|
+
"fix": {
|
|
3659
|
+
"description": "The kind of the code actions emitted by the rule",
|
|
3660
|
+
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
3661
|
+
},
|
|
3662
|
+
"level": {
|
|
3663
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
3664
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
3665
|
+
},
|
|
3666
|
+
"options": {
|
|
3667
|
+
"description": "Rule's options",
|
|
3668
|
+
"allOf": [{ "$ref": "#/definitions/ImportTypeOptions" }]
|
|
3669
|
+
}
|
|
3670
|
+
},
|
|
3671
|
+
"additionalProperties": false
|
|
3672
|
+
},
|
|
3587
3673
|
"RuleWithNamingConventionOptions": {
|
|
3588
3674
|
"type": "object",
|
|
3589
3675
|
"required": ["level"],
|
|
@@ -3618,6 +3704,25 @@
|
|
|
3618
3704
|
},
|
|
3619
3705
|
"additionalProperties": false
|
|
3620
3706
|
},
|
|
3707
|
+
"RuleWithNoBlankTargetOptions": {
|
|
3708
|
+
"type": "object",
|
|
3709
|
+
"required": ["level"],
|
|
3710
|
+
"properties": {
|
|
3711
|
+
"fix": {
|
|
3712
|
+
"description": "The kind of the code actions emitted by the rule",
|
|
3713
|
+
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
3714
|
+
},
|
|
3715
|
+
"level": {
|
|
3716
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
3717
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
3718
|
+
},
|
|
3719
|
+
"options": {
|
|
3720
|
+
"description": "Rule's options",
|
|
3721
|
+
"allOf": [{ "$ref": "#/definitions/NoBlankTargetOptions" }]
|
|
3722
|
+
}
|
|
3723
|
+
},
|
|
3724
|
+
"additionalProperties": false
|
|
3725
|
+
},
|
|
3621
3726
|
"RuleWithNoConfusingLabelsOptions": {
|
|
3622
3727
|
"type": "object",
|
|
3623
3728
|
"required": ["level"],
|
|
@@ -3727,6 +3832,21 @@
|
|
|
3727
3832
|
},
|
|
3728
3833
|
"additionalProperties": false
|
|
3729
3834
|
},
|
|
3835
|
+
"RuleWithNoRestrictedElementsOptions": {
|
|
3836
|
+
"type": "object",
|
|
3837
|
+
"required": ["level"],
|
|
3838
|
+
"properties": {
|
|
3839
|
+
"level": {
|
|
3840
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
3841
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
3842
|
+
},
|
|
3843
|
+
"options": {
|
|
3844
|
+
"description": "Rule's options",
|
|
3845
|
+
"allOf": [{ "$ref": "#/definitions/NoRestrictedElementsOptions" }]
|
|
3846
|
+
}
|
|
3847
|
+
},
|
|
3848
|
+
"additionalProperties": false
|
|
3849
|
+
},
|
|
3730
3850
|
"RuleWithNoRestrictedTypesOptions": {
|
|
3731
3851
|
"type": "object",
|
|
3732
3852
|
"required": ["level"],
|
|
@@ -3861,6 +3981,10 @@
|
|
|
3861
3981
|
"type": "object",
|
|
3862
3982
|
"required": ["level"],
|
|
3863
3983
|
"properties": {
|
|
3984
|
+
"fix": {
|
|
3985
|
+
"description": "The kind of the code actions emitted by the rule",
|
|
3986
|
+
"anyOf": [{ "$ref": "#/definitions/FixKind" }, { "type": "null" }]
|
|
3987
|
+
},
|
|
3864
3988
|
"level": {
|
|
3865
3989
|
"description": "The severity of the emitted diagnostics by the rule",
|
|
3866
3990
|
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
@@ -4050,6 +4174,13 @@
|
|
|
4050
4174
|
"description": "A list of rules that belong to this group",
|
|
4051
4175
|
"type": "object",
|
|
4052
4176
|
"properties": {
|
|
4177
|
+
"noBlankTarget": {
|
|
4178
|
+
"description": "Disallow target=\"_blank\" attribute without rel=\"noopener\".",
|
|
4179
|
+
"anyOf": [
|
|
4180
|
+
{ "$ref": "#/definitions/NoBlankTargetConfiguration" },
|
|
4181
|
+
{ "type": "null" }
|
|
4182
|
+
]
|
|
4183
|
+
},
|
|
4053
4184
|
"noDangerouslySetInnerHtml": {
|
|
4054
4185
|
"description": "Prevent the usage of dangerous JSX props",
|
|
4055
4186
|
"anyOf": [
|
|
@@ -4096,6 +4227,21 @@
|
|
|
4096
4227
|
},
|
|
4097
4228
|
"additionalProperties": false
|
|
4098
4229
|
},
|
|
4230
|
+
"SelfCloseVoidElements": {
|
|
4231
|
+
"description": "Controls whether void-elements should be self closed",
|
|
4232
|
+
"oneOf": [
|
|
4233
|
+
{
|
|
4234
|
+
"description": "The `/` inside void elements is removed by the formatter",
|
|
4235
|
+
"type": "string",
|
|
4236
|
+
"enum": ["never"]
|
|
4237
|
+
},
|
|
4238
|
+
{
|
|
4239
|
+
"description": "The `/` inside void elements is always added",
|
|
4240
|
+
"type": "string",
|
|
4241
|
+
"enum": ["always"]
|
|
4242
|
+
}
|
|
4243
|
+
]
|
|
4244
|
+
},
|
|
4099
4245
|
"Semicolons": { "type": "string", "enum": ["always", "asNeeded"] },
|
|
4100
4246
|
"SeverityOrGroup_for_A11y": {
|
|
4101
4247
|
"anyOf": [
|
|
@@ -4184,6 +4330,18 @@
|
|
|
4184
4330
|
},
|
|
4185
4331
|
"additionalProperties": false
|
|
4186
4332
|
},
|
|
4333
|
+
"SourceMatcher": {
|
|
4334
|
+
"anyOf": [
|
|
4335
|
+
{ "$ref": "#/definitions/PredefinedGroupMatcher" },
|
|
4336
|
+
{ "$ref": "#/definitions/ImportSourceGlob" }
|
|
4337
|
+
]
|
|
4338
|
+
},
|
|
4339
|
+
"SourcesMatcher": {
|
|
4340
|
+
"anyOf": [
|
|
4341
|
+
{ "$ref": "#/definitions/SourceMatcher" },
|
|
4342
|
+
{ "type": "array", "items": { "$ref": "#/definitions/SourceMatcher" } }
|
|
4343
|
+
]
|
|
4344
|
+
},
|
|
4187
4345
|
"StableHookResult": {
|
|
4188
4346
|
"oneOf": [
|
|
4189
4347
|
{
|
|
@@ -4438,7 +4596,7 @@
|
|
|
4438
4596
|
"useImportType": {
|
|
4439
4597
|
"description": "Promotes the use of import type for types.",
|
|
4440
4598
|
"anyOf": [
|
|
4441
|
-
{ "$ref": "#/definitions/
|
|
4599
|
+
{ "$ref": "#/definitions/ImportTypeConfiguration" },
|
|
4442
4600
|
{ "type": "null" }
|
|
4443
4601
|
]
|
|
4444
4602
|
},
|
|
@@ -4550,6 +4708,26 @@
|
|
|
4550
4708
|
},
|
|
4551
4709
|
"additionalProperties": false
|
|
4552
4710
|
},
|
|
4711
|
+
"Style2": {
|
|
4712
|
+
"description": "Rule's options.",
|
|
4713
|
+
"oneOf": [
|
|
4714
|
+
{
|
|
4715
|
+
"description": "Use the best fitting style according to the situation",
|
|
4716
|
+
"type": "string",
|
|
4717
|
+
"enum": ["auto"]
|
|
4718
|
+
},
|
|
4719
|
+
{
|
|
4720
|
+
"description": "Always use inline type keywords",
|
|
4721
|
+
"type": "string",
|
|
4722
|
+
"enum": ["inlineType"]
|
|
4723
|
+
},
|
|
4724
|
+
{
|
|
4725
|
+
"description": "Always separate types in a dedicated `import type`",
|
|
4726
|
+
"type": "string",
|
|
4727
|
+
"enum": ["separatedType"]
|
|
4728
|
+
}
|
|
4729
|
+
]
|
|
4730
|
+
},
|
|
4553
4731
|
"Suspicious": {
|
|
4554
4732
|
"description": "A list of rules that belong to this group",
|
|
4555
4733
|
"type": "object",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biomejs/biome",
|
|
3
|
-
"version": "2.0.0-beta",
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
4
|
"bin": {
|
|
5
5
|
"biome": "bin/biome"
|
|
6
6
|
},
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"provenance": true
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@biomejs/cli-win32-x64": "
|
|
50
|
-
"@biomejs/cli-win32-arm64": "
|
|
51
|
-
"@biomejs/cli-darwin-x64": "
|
|
52
|
-
"@biomejs/cli-darwin-arm64": "
|
|
53
|
-
"@biomejs/cli-linux-x64": "
|
|
54
|
-
"@biomejs/cli-linux-arm64": "
|
|
55
|
-
"@biomejs/cli-linux-x64-musl": "
|
|
56
|
-
"@biomejs/cli-linux-arm64-musl": "
|
|
49
|
+
"@biomejs/cli-win32-x64": "2.0.0-beta.2",
|
|
50
|
+
"@biomejs/cli-win32-arm64": "2.0.0-beta.2",
|
|
51
|
+
"@biomejs/cli-darwin-x64": "2.0.0-beta.2",
|
|
52
|
+
"@biomejs/cli-darwin-arm64": "2.0.0-beta.2",
|
|
53
|
+
"@biomejs/cli-linux-x64": "2.0.0-beta.2",
|
|
54
|
+
"@biomejs/cli-linux-arm64": "2.0.0-beta.2",
|
|
55
|
+
"@biomejs/cli-linux-x64-musl": "2.0.0-beta.2",
|
|
56
|
+
"@biomejs/cli-linux-arm64-musl": "2.0.0-beta.2"
|
|
57
57
|
}
|
|
58
58
|
}
|