@biomejs/biome 1.3.3 → 1.4.1-nightly.22dd4e1
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/LICENSE-APACHE +201 -0
- package/LICENSE-MIT +21 -0
- package/README.ja.md +119 -0
- package/README.md +82 -16
- package/README.pt-br.md +123 -0
- package/README.zh-CN.md +115 -0
- package/ROME-LICENSE-MIT +21 -0
- package/bin/biome +26 -1
- package/configuration_schema.json +336 -35
- package/package.json +1 -1
- package/scripts/postinstall.js +25 -1
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
"description": "A field for the [JSON schema](https://json-schema.org/) specification",
|
|
9
9
|
"type": ["string", "null"]
|
|
10
10
|
},
|
|
11
|
+
"css": {
|
|
12
|
+
"description": "Specific configuration for the Css language",
|
|
13
|
+
"anyOf": [
|
|
14
|
+
{ "$ref": "#/definitions/CssConfiguration" },
|
|
15
|
+
{ "type": "null" }
|
|
16
|
+
]
|
|
17
|
+
},
|
|
11
18
|
"extends": {
|
|
12
19
|
"description": "A list of paths to other JSON files, used to extends the current configuration.",
|
|
13
20
|
"anyOf": [{ "$ref": "#/definitions/StringSet" }, { "type": "null" }]
|
|
@@ -115,6 +122,13 @@
|
|
|
115
122
|
{ "type": "null" }
|
|
116
123
|
]
|
|
117
124
|
},
|
|
125
|
+
"noInteractiveElementToNoninteractiveRole": {
|
|
126
|
+
"description": "Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.",
|
|
127
|
+
"anyOf": [
|
|
128
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
129
|
+
{ "type": "null" }
|
|
130
|
+
]
|
|
131
|
+
},
|
|
118
132
|
"noNoninteractiveElementToInteractiveRole": {
|
|
119
133
|
"description": "Enforce that interactive ARIA roles are not assigned to non-interactive HTML elements.",
|
|
120
134
|
"anyOf": [
|
|
@@ -175,6 +189,13 @@
|
|
|
175
189
|
{ "type": "null" }
|
|
176
190
|
]
|
|
177
191
|
},
|
|
192
|
+
"useAriaActivedescendantWithTabindex": {
|
|
193
|
+
"description": "Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.",
|
|
194
|
+
"anyOf": [
|
|
195
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
196
|
+
{ "type": "null" }
|
|
197
|
+
]
|
|
198
|
+
},
|
|
178
199
|
"useAriaPropsForRole": {
|
|
179
200
|
"description": "Enforce that elements with ARIA roles must have all required ARIA attributes for that role.",
|
|
180
201
|
"anyOf": [
|
|
@@ -312,6 +333,13 @@
|
|
|
312
333
|
{ "type": "null" }
|
|
313
334
|
]
|
|
314
335
|
},
|
|
336
|
+
"noThisInStatic": {
|
|
337
|
+
"description": "Disallow this and super in static contexts.",
|
|
338
|
+
"anyOf": [
|
|
339
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
340
|
+
{ "type": "null" }
|
|
341
|
+
]
|
|
342
|
+
},
|
|
315
343
|
"noUselessCatch": {
|
|
316
344
|
"description": "Disallow unnecessary catch clauses.",
|
|
317
345
|
"anyOf": [
|
|
@@ -393,6 +421,13 @@
|
|
|
393
421
|
"description": "It enables the recommended rules for this group",
|
|
394
422
|
"type": ["boolean", "null"]
|
|
395
423
|
},
|
|
424
|
+
"useArrowFunction": {
|
|
425
|
+
"description": "Use arrow functions over function expressions.",
|
|
426
|
+
"anyOf": [
|
|
427
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
428
|
+
{ "type": "null" }
|
|
429
|
+
]
|
|
430
|
+
},
|
|
396
431
|
"useFlatMap": {
|
|
397
432
|
"description": "Promotes the use of .flatMap() when map().flat() are used together.",
|
|
398
433
|
"anyOf": [
|
|
@@ -439,7 +474,7 @@
|
|
|
439
474
|
"description": "The maximum complexity score that we allow. Anything higher is considered excessive.",
|
|
440
475
|
"type": "integer",
|
|
441
476
|
"format": "uint8",
|
|
442
|
-
"minimum":
|
|
477
|
+
"minimum": 1.0
|
|
443
478
|
}
|
|
444
479
|
},
|
|
445
480
|
"additionalProperties": false
|
|
@@ -480,6 +515,13 @@
|
|
|
480
515
|
{ "type": "null" }
|
|
481
516
|
]
|
|
482
517
|
},
|
|
518
|
+
"noEmptyCharacterClassInRegex": {
|
|
519
|
+
"description": "Disallow empty character classes in regular expression literals.",
|
|
520
|
+
"anyOf": [
|
|
521
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
522
|
+
{ "type": "null" }
|
|
523
|
+
]
|
|
524
|
+
},
|
|
483
525
|
"noEmptyPattern": {
|
|
484
526
|
"description": "Disallows empty destructuring patterns.",
|
|
485
527
|
"anyOf": [
|
|
@@ -508,6 +550,13 @@
|
|
|
508
550
|
{ "type": "null" }
|
|
509
551
|
]
|
|
510
552
|
},
|
|
553
|
+
"noInvalidNewBuiltin": {
|
|
554
|
+
"description": "Disallow new operators with global non-constructor functions.",
|
|
555
|
+
"anyOf": [
|
|
556
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
557
|
+
{ "type": "null" }
|
|
558
|
+
]
|
|
559
|
+
},
|
|
511
560
|
"noNewSymbol": {
|
|
512
561
|
"description": "Disallow new operators with the Symbol object.",
|
|
513
562
|
"anyOf": [
|
|
@@ -675,6 +724,72 @@
|
|
|
675
724
|
}
|
|
676
725
|
}
|
|
677
726
|
},
|
|
727
|
+
"CssConfiguration": {
|
|
728
|
+
"description": "Options applied to CSS files",
|
|
729
|
+
"type": "object",
|
|
730
|
+
"properties": {
|
|
731
|
+
"formatter": {
|
|
732
|
+
"description": "Formatting options",
|
|
733
|
+
"anyOf": [
|
|
734
|
+
{ "$ref": "#/definitions/CssFormatter" },
|
|
735
|
+
{ "type": "null" }
|
|
736
|
+
]
|
|
737
|
+
},
|
|
738
|
+
"parser": {
|
|
739
|
+
"description": "Parsing options",
|
|
740
|
+
"anyOf": [{ "$ref": "#/definitions/CssParser" }, { "type": "null" }]
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
"additionalProperties": false
|
|
744
|
+
},
|
|
745
|
+
"CssFormatter": {
|
|
746
|
+
"type": "object",
|
|
747
|
+
"properties": {
|
|
748
|
+
"enabled": {
|
|
749
|
+
"description": "Control the formatter for CSS (and its super languages) files.",
|
|
750
|
+
"type": ["boolean", "null"]
|
|
751
|
+
},
|
|
752
|
+
"indentSize": {
|
|
753
|
+
"description": "The size of the indentation applied to CSS (and its super languages) files. Default to 2.",
|
|
754
|
+
"type": ["integer", "null"],
|
|
755
|
+
"format": "uint8",
|
|
756
|
+
"minimum": 0.0
|
|
757
|
+
},
|
|
758
|
+
"indentStyle": {
|
|
759
|
+
"description": "The indent style applied to CSS (and its super languages) files.",
|
|
760
|
+
"anyOf": [
|
|
761
|
+
{ "$ref": "#/definitions/PlainIndentStyle" },
|
|
762
|
+
{ "type": "null" }
|
|
763
|
+
]
|
|
764
|
+
},
|
|
765
|
+
"indentWidth": {
|
|
766
|
+
"description": "The size of the indentation applied to CSS (and its super languages) files. Default to 2.",
|
|
767
|
+
"type": ["integer", "null"],
|
|
768
|
+
"format": "uint8",
|
|
769
|
+
"minimum": 0.0
|
|
770
|
+
},
|
|
771
|
+
"lineEnding": {
|
|
772
|
+
"description": "The type of line ending applied to CSS (and its super languages) files.",
|
|
773
|
+
"anyOf": [{ "$ref": "#/definitions/LineEnding" }, { "type": "null" }]
|
|
774
|
+
},
|
|
775
|
+
"lineWidth": {
|
|
776
|
+
"description": "What's the max width of a line applied to CSS (and its super languages) files. Defaults to 80.",
|
|
777
|
+
"anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
"additionalProperties": false
|
|
781
|
+
},
|
|
782
|
+
"CssParser": {
|
|
783
|
+
"description": "Options that changes how the CSS parser behaves",
|
|
784
|
+
"type": "object",
|
|
785
|
+
"properties": {
|
|
786
|
+
"allowWrongLineComments": {
|
|
787
|
+
"description": "Allow comments to appear on incorrect lines in `.css` files",
|
|
788
|
+
"type": ["boolean", "null"]
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
"additionalProperties": false
|
|
792
|
+
},
|
|
678
793
|
"EnumMemberCase": {
|
|
679
794
|
"description": "Supported cases for TypeScript `enum` member names.",
|
|
680
795
|
"oneOf": [
|
|
@@ -691,6 +806,47 @@
|
|
|
691
806
|
{ "description": "camelCase", "type": "string", "enum": ["camelCase"] }
|
|
692
807
|
]
|
|
693
808
|
},
|
|
809
|
+
"FilenameCase": {
|
|
810
|
+
"description": "Supported cases for TypeScript `enum` member names.",
|
|
811
|
+
"oneOf": [
|
|
812
|
+
{ "description": "camelCase", "type": "string", "enum": ["camelCase"] },
|
|
813
|
+
{
|
|
814
|
+
"description": "Match an export name",
|
|
815
|
+
"type": "string",
|
|
816
|
+
"enum": ["export"]
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"description": "kebab-case",
|
|
820
|
+
"type": "string",
|
|
821
|
+
"enum": ["kebab-case"]
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"description": "PascalCase",
|
|
825
|
+
"type": "string",
|
|
826
|
+
"enum": ["snake_case"]
|
|
827
|
+
}
|
|
828
|
+
]
|
|
829
|
+
},
|
|
830
|
+
"FilenameCases": {
|
|
831
|
+
"type": "array",
|
|
832
|
+
"items": { "$ref": "#/definitions/FilenameCase" },
|
|
833
|
+
"uniqueItems": true
|
|
834
|
+
},
|
|
835
|
+
"FilenamingConventionOptions": {
|
|
836
|
+
"description": "Rule's options.",
|
|
837
|
+
"type": "object",
|
|
838
|
+
"properties": {
|
|
839
|
+
"filenameCases": {
|
|
840
|
+
"description": "Allowed cases for _TypeScript_ `enum` member names.",
|
|
841
|
+
"allOf": [{ "$ref": "#/definitions/FilenameCases" }]
|
|
842
|
+
},
|
|
843
|
+
"strictCase": {
|
|
844
|
+
"description": "If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].",
|
|
845
|
+
"type": "boolean"
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
"additionalProperties": false
|
|
849
|
+
},
|
|
694
850
|
"FilesConfiguration": {
|
|
695
851
|
"description": "The configuration of the filesystem",
|
|
696
852
|
"type": "object",
|
|
@@ -757,6 +913,11 @@
|
|
|
757
913
|
"format": "uint8",
|
|
758
914
|
"minimum": 0.0
|
|
759
915
|
},
|
|
916
|
+
"lineEnding": {
|
|
917
|
+
"description": "The type of line ending.",
|
|
918
|
+
"default": "lf",
|
|
919
|
+
"anyOf": [{ "$ref": "#/definitions/LineEnding" }, { "type": "null" }]
|
|
920
|
+
},
|
|
760
921
|
"lineWidth": {
|
|
761
922
|
"description": "What's the max width of a line. Defaults to 80.",
|
|
762
923
|
"default": 80,
|
|
@@ -840,6 +1001,14 @@
|
|
|
840
1001
|
{ "type": "null" }
|
|
841
1002
|
]
|
|
842
1003
|
},
|
|
1004
|
+
"bracketSameLine": {
|
|
1005
|
+
"description": "Whether to hug the closing bracket of multiline HTML/JSX tags to the end of the last line, rather than being alone on the following line. Defaults to false.",
|
|
1006
|
+
"type": ["boolean", "null"]
|
|
1007
|
+
},
|
|
1008
|
+
"bracketSpacing": {
|
|
1009
|
+
"description": "Whether to insert spaces around brackets in object literals. Defaults to true.",
|
|
1010
|
+
"type": ["boolean", "null"]
|
|
1011
|
+
},
|
|
843
1012
|
"enabled": {
|
|
844
1013
|
"description": "Control the formatter for JavaScript (and its super languages) files.",
|
|
845
1014
|
"type": ["boolean", "null"]
|
|
@@ -867,8 +1036,12 @@
|
|
|
867
1036
|
"description": "The type of quotes used in JSX. Defaults to double.",
|
|
868
1037
|
"anyOf": [{ "$ref": "#/definitions/QuoteStyle" }, { "type": "null" }]
|
|
869
1038
|
},
|
|
1039
|
+
"lineEnding": {
|
|
1040
|
+
"description": "The type of line ending applied to JavaScript (and its super languages) files.",
|
|
1041
|
+
"anyOf": [{ "$ref": "#/definitions/LineEnding" }, { "type": "null" }]
|
|
1042
|
+
},
|
|
870
1043
|
"lineWidth": {
|
|
871
|
-
"description": "What's the max width of a line
|
|
1044
|
+
"description": "What's the max width of a line applied to JavaScript (and its super languages) files. Defaults to 80.",
|
|
872
1045
|
"anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
|
|
873
1046
|
},
|
|
874
1047
|
"quoteProperties": {
|
|
@@ -955,8 +1128,12 @@
|
|
|
955
1128
|
"format": "uint8",
|
|
956
1129
|
"minimum": 0.0
|
|
957
1130
|
},
|
|
1131
|
+
"lineEnding": {
|
|
1132
|
+
"description": "The type of line ending applied to JSON (and its super languages) files.",
|
|
1133
|
+
"anyOf": [{ "$ref": "#/definitions/LineEnding" }, { "type": "null" }]
|
|
1134
|
+
},
|
|
958
1135
|
"lineWidth": {
|
|
959
|
-
"description": "What's the max width of a line
|
|
1136
|
+
"description": "What's the max width of a line applied to JSON (and its super languages) files. Defaults to 80.",
|
|
960
1137
|
"anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
|
|
961
1138
|
}
|
|
962
1139
|
},
|
|
@@ -977,6 +1154,25 @@
|
|
|
977
1154
|
},
|
|
978
1155
|
"additionalProperties": false
|
|
979
1156
|
},
|
|
1157
|
+
"LineEnding": {
|
|
1158
|
+
"oneOf": [
|
|
1159
|
+
{
|
|
1160
|
+
"description": "Line Feed only (\\n), common on Linux and macOS as well as inside git repos",
|
|
1161
|
+
"type": "string",
|
|
1162
|
+
"enum": ["lf"]
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
"description": "Carriage Return + Line Feed characters (\\r\\n), common on Windows",
|
|
1166
|
+
"type": "string",
|
|
1167
|
+
"enum": ["crlf"]
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"description": "Carriage Return character only (\\r), used very rarely",
|
|
1171
|
+
"type": "string",
|
|
1172
|
+
"enum": ["cr"]
|
|
1173
|
+
}
|
|
1174
|
+
]
|
|
1175
|
+
},
|
|
980
1176
|
"LineWidth": {
|
|
981
1177
|
"description": "Validated value for the `line_width` formatter options\n\nThe allowed range of values is 1..=320",
|
|
982
1178
|
"type": "integer",
|
|
@@ -1030,85 +1226,85 @@
|
|
|
1030
1226
|
"description": "It enables ALL rules for this group.",
|
|
1031
1227
|
"type": ["boolean", "null"]
|
|
1032
1228
|
},
|
|
1033
|
-
"
|
|
1034
|
-
"description": "
|
|
1229
|
+
"noAriaHiddenOnFocusable": {
|
|
1230
|
+
"description": "Enforce that aria-hidden=\"true\" is not set on focusable elements.",
|
|
1035
1231
|
"anyOf": [
|
|
1036
1232
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1037
1233
|
{ "type": "null" }
|
|
1038
1234
|
]
|
|
1039
1235
|
},
|
|
1040
|
-
"
|
|
1041
|
-
"description": "Disallow
|
|
1236
|
+
"noDefaultExport": {
|
|
1237
|
+
"description": "Disallow default exports.",
|
|
1042
1238
|
"anyOf": [
|
|
1043
1239
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1044
1240
|
{ "type": "null" }
|
|
1045
1241
|
]
|
|
1046
1242
|
},
|
|
1047
|
-
"
|
|
1048
|
-
"description": "Disallow
|
|
1243
|
+
"noDuplicateJsonKeys": {
|
|
1244
|
+
"description": "Disallow two keys with the same name inside a JSON object.",
|
|
1049
1245
|
"anyOf": [
|
|
1050
1246
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1051
1247
|
{ "type": "null" }
|
|
1052
1248
|
]
|
|
1053
1249
|
},
|
|
1054
|
-
"
|
|
1055
|
-
"description": "Disallow empty
|
|
1250
|
+
"noEmptyBlockStatements": {
|
|
1251
|
+
"description": "Disallow empty block statements and static blocks.",
|
|
1056
1252
|
"anyOf": [
|
|
1057
1253
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1058
1254
|
{ "type": "null" }
|
|
1059
1255
|
]
|
|
1060
1256
|
},
|
|
1061
|
-
"
|
|
1062
|
-
"description": "
|
|
1257
|
+
"noImplicitAnyLet": {
|
|
1258
|
+
"description": "Disallow use of implicit any type on variable declarations.",
|
|
1063
1259
|
"anyOf": [
|
|
1064
1260
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1065
1261
|
{ "type": "null" }
|
|
1066
1262
|
]
|
|
1067
1263
|
},
|
|
1068
|
-
"
|
|
1069
|
-
"description": "Disallow
|
|
1264
|
+
"noInvalidUseBeforeDeclaration": {
|
|
1265
|
+
"description": "Disallow the use of variables and function parameters before their declaration",
|
|
1070
1266
|
"anyOf": [
|
|
1071
1267
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1072
1268
|
{ "type": "null" }
|
|
1073
1269
|
]
|
|
1074
1270
|
},
|
|
1075
|
-
"
|
|
1076
|
-
"description": "
|
|
1271
|
+
"noMisleadingCharacterClass": {
|
|
1272
|
+
"description": "Disallow characters made with multiple code points in character class syntax.",
|
|
1077
1273
|
"anyOf": [
|
|
1078
1274
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1079
1275
|
{ "type": "null" }
|
|
1080
1276
|
]
|
|
1081
1277
|
},
|
|
1082
|
-
"
|
|
1083
|
-
"description": "
|
|
1278
|
+
"noNodejsModules": {
|
|
1279
|
+
"description": "Forbid the use of Node.js builtin modules. Can be useful for client-side web projects that do not have access to those modules.",
|
|
1084
1280
|
"anyOf": [
|
|
1085
1281
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1086
1282
|
{ "type": "null" }
|
|
1087
1283
|
]
|
|
1088
1284
|
},
|
|
1089
|
-
"
|
|
1090
|
-
"description": "Disallow
|
|
1285
|
+
"noUnusedImports": {
|
|
1286
|
+
"description": "Disallow unused imports.",
|
|
1091
1287
|
"anyOf": [
|
|
1092
1288
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1093
1289
|
{ "type": "null" }
|
|
1094
1290
|
]
|
|
1095
1291
|
},
|
|
1096
|
-
"
|
|
1097
|
-
"description": "Disallow unused
|
|
1292
|
+
"noUnusedPrivateClassMembers": {
|
|
1293
|
+
"description": "Disallow unused private class members",
|
|
1098
1294
|
"anyOf": [
|
|
1099
1295
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1100
1296
|
{ "type": "null" }
|
|
1101
1297
|
]
|
|
1102
1298
|
},
|
|
1103
|
-
"
|
|
1104
|
-
"description": "Disallow
|
|
1299
|
+
"noUselessLoneBlockStatements": {
|
|
1300
|
+
"description": "Disallow unnecessary nested block statements.",
|
|
1105
1301
|
"anyOf": [
|
|
1106
1302
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1107
1303
|
{ "type": "null" }
|
|
1108
1304
|
]
|
|
1109
1305
|
},
|
|
1110
|
-
"
|
|
1111
|
-
"description": "Disallow
|
|
1306
|
+
"noUselessTernary": {
|
|
1307
|
+
"description": "Disallow ternary operators when simpler alternatives exist.",
|
|
1112
1308
|
"anyOf": [
|
|
1113
1309
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1114
1310
|
{ "type": "null" }
|
|
@@ -1118,22 +1314,29 @@
|
|
|
1118
1314
|
"description": "It enables the recommended rules for this group",
|
|
1119
1315
|
"type": ["boolean", "null"]
|
|
1120
1316
|
},
|
|
1121
|
-
"
|
|
1122
|
-
"description": "
|
|
1317
|
+
"useAwait": {
|
|
1318
|
+
"description": "Ensure async functions utilize await.",
|
|
1123
1319
|
"anyOf": [
|
|
1124
1320
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1125
1321
|
{ "type": "null" }
|
|
1126
1322
|
]
|
|
1127
1323
|
},
|
|
1128
|
-
"
|
|
1129
|
-
"description": "
|
|
1324
|
+
"useExportType": {
|
|
1325
|
+
"description": "Promotes the use of export type for types.",
|
|
1130
1326
|
"anyOf": [
|
|
1131
1327
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1132
1328
|
{ "type": "null" }
|
|
1133
1329
|
]
|
|
1134
1330
|
},
|
|
1135
|
-
"
|
|
1136
|
-
"description": "Enforce
|
|
1331
|
+
"useFilenamingConvention": {
|
|
1332
|
+
"description": "Enforce naming conventions for JavaScript and TypeScript filenames.",
|
|
1333
|
+
"anyOf": [
|
|
1334
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1335
|
+
{ "type": "null" }
|
|
1336
|
+
]
|
|
1337
|
+
},
|
|
1338
|
+
"useForOf": {
|
|
1339
|
+
"description": "This rule recommends a for-of loop when in a for loop, the index used to extract an item from the iterated array.",
|
|
1137
1340
|
"anyOf": [
|
|
1138
1341
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1139
1342
|
{ "type": "null" }
|
|
@@ -1153,8 +1356,29 @@
|
|
|
1153
1356
|
{ "type": "null" }
|
|
1154
1357
|
]
|
|
1155
1358
|
},
|
|
1156
|
-
"
|
|
1157
|
-
"description": "
|
|
1359
|
+
"useNodeImportProtocol": {
|
|
1360
|
+
"description": "Enforces using the node: protocol for Node.js builtin modules.",
|
|
1361
|
+
"anyOf": [
|
|
1362
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1363
|
+
{ "type": "null" }
|
|
1364
|
+
]
|
|
1365
|
+
},
|
|
1366
|
+
"useRegexLiterals": {
|
|
1367
|
+
"description": "Enforce the use of the regular expression literals instead of the RegExp constructor if possible.",
|
|
1368
|
+
"anyOf": [
|
|
1369
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1370
|
+
{ "type": "null" }
|
|
1371
|
+
]
|
|
1372
|
+
},
|
|
1373
|
+
"useShorthandFunctionType": {
|
|
1374
|
+
"description": "Enforce using function types instead of object type with call signatures.",
|
|
1375
|
+
"anyOf": [
|
|
1376
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1377
|
+
{ "type": "null" }
|
|
1378
|
+
]
|
|
1379
|
+
},
|
|
1380
|
+
"useValidAriaRole": {
|
|
1381
|
+
"description": "Elements with ARIA roles must use a valid, non-abstract ARIA role.",
|
|
1158
1382
|
"anyOf": [
|
|
1159
1383
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1160
1384
|
{ "type": "null" }
|
|
@@ -1209,6 +1433,10 @@
|
|
|
1209
1433
|
"format": "uint8",
|
|
1210
1434
|
"minimum": 0.0
|
|
1211
1435
|
},
|
|
1436
|
+
"lineEnding": {
|
|
1437
|
+
"description": "The type of line ending.",
|
|
1438
|
+
"anyOf": [{ "$ref": "#/definitions/LineEnding" }, { "type": "null" }]
|
|
1439
|
+
},
|
|
1212
1440
|
"lineWidth": {
|
|
1213
1441
|
"description": "What's the max width of a line. Defaults to 80.",
|
|
1214
1442
|
"default": 80,
|
|
@@ -1244,6 +1472,13 @@
|
|
|
1244
1472
|
"OverridePattern": {
|
|
1245
1473
|
"type": "object",
|
|
1246
1474
|
"properties": {
|
|
1475
|
+
"css": {
|
|
1476
|
+
"description": "Specific configuration for the Css language",
|
|
1477
|
+
"anyOf": [
|
|
1478
|
+
{ "$ref": "#/definitions/CssConfiguration" },
|
|
1479
|
+
{ "type": "null" }
|
|
1480
|
+
]
|
|
1481
|
+
},
|
|
1247
1482
|
"formatter": {
|
|
1248
1483
|
"description": "Specific configuration for the Json language",
|
|
1249
1484
|
"anyOf": [
|
|
@@ -1334,6 +1569,10 @@
|
|
|
1334
1569
|
"description": "Options for `noExcessiveComplexity` rule",
|
|
1335
1570
|
"allOf": [{ "$ref": "#/definitions/ComplexityOptions" }]
|
|
1336
1571
|
},
|
|
1572
|
+
{
|
|
1573
|
+
"description": "Options for `useFilenamingConvention` rule",
|
|
1574
|
+
"allOf": [{ "$ref": "#/definitions/FilenamingConventionOptions" }]
|
|
1575
|
+
},
|
|
1337
1576
|
{
|
|
1338
1577
|
"description": "Options for `useExhaustiveDependencies` and `useHookAtTopLevel` rule",
|
|
1339
1578
|
"allOf": [{ "$ref": "#/definitions/HooksOptions" }]
|
|
@@ -1345,6 +1584,10 @@
|
|
|
1345
1584
|
{
|
|
1346
1585
|
"description": "Options for `noRestrictedGlobals` rule",
|
|
1347
1586
|
"allOf": [{ "$ref": "#/definitions/RestrictedGlobalsOptions" }]
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
"description": "Options for `useValidAriaRole` rule",
|
|
1590
|
+
"allOf": [{ "$ref": "#/definitions/ValidAriaRoleOptions" }]
|
|
1348
1591
|
}
|
|
1349
1592
|
]
|
|
1350
1593
|
},
|
|
@@ -1550,6 +1793,13 @@
|
|
|
1550
1793
|
{ "type": "null" }
|
|
1551
1794
|
]
|
|
1552
1795
|
},
|
|
1796
|
+
"noUselessElse": {
|
|
1797
|
+
"description": "Disallow else block when the if block breaks early.",
|
|
1798
|
+
"anyOf": [
|
|
1799
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1800
|
+
{ "type": "null" }
|
|
1801
|
+
]
|
|
1802
|
+
},
|
|
1553
1803
|
"noVar": {
|
|
1554
1804
|
"description": "Disallow the use of var",
|
|
1555
1805
|
"anyOf": [
|
|
@@ -1561,6 +1811,13 @@
|
|
|
1561
1811
|
"description": "It enables the recommended rules for this group",
|
|
1562
1812
|
"type": ["boolean", "null"]
|
|
1563
1813
|
},
|
|
1814
|
+
"useAsConstAssertion": {
|
|
1815
|
+
"description": "Enforce the use of as const over literal type and type annotation.",
|
|
1816
|
+
"anyOf": [
|
|
1817
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1818
|
+
{ "type": "null" }
|
|
1819
|
+
]
|
|
1820
|
+
},
|
|
1564
1821
|
"useBlockStatements": {
|
|
1565
1822
|
"description": "Requires following curly brace conventions.",
|
|
1566
1823
|
"anyOf": [
|
|
@@ -1645,6 +1902,13 @@
|
|
|
1645
1902
|
{ "type": "null" }
|
|
1646
1903
|
]
|
|
1647
1904
|
},
|
|
1905
|
+
"useShorthandAssign": {
|
|
1906
|
+
"description": "Require assignment operator shorthand where possible.",
|
|
1907
|
+
"anyOf": [
|
|
1908
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1909
|
+
{ "type": "null" }
|
|
1910
|
+
]
|
|
1911
|
+
},
|
|
1648
1912
|
"useSingleCaseStatement": {
|
|
1649
1913
|
"description": "Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.",
|
|
1650
1914
|
"anyOf": [
|
|
@@ -1683,6 +1947,13 @@
|
|
|
1683
1947
|
"description": "It enables ALL rules for this group.",
|
|
1684
1948
|
"type": ["boolean", "null"]
|
|
1685
1949
|
},
|
|
1950
|
+
"noApproximativeNumericConstant": {
|
|
1951
|
+
"description": "Usually, the definition in the standard library is more precise than what people come up with or the used constant exceeds the maximum precision of the number type.",
|
|
1952
|
+
"anyOf": [
|
|
1953
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1954
|
+
{ "type": "null" }
|
|
1955
|
+
]
|
|
1956
|
+
},
|
|
1686
1957
|
"noArrayIndexKey": {
|
|
1687
1958
|
"description": "Discourage the usage of Array index in keys.",
|
|
1688
1959
|
"anyOf": [
|
|
@@ -1879,6 +2150,20 @@
|
|
|
1879
2150
|
{ "type": "null" }
|
|
1880
2151
|
]
|
|
1881
2152
|
},
|
|
2153
|
+
"noMisleadingInstantiator": {
|
|
2154
|
+
"description": "Enforce proper usage of new and constructor.",
|
|
2155
|
+
"anyOf": [
|
|
2156
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2157
|
+
{ "type": "null" }
|
|
2158
|
+
]
|
|
2159
|
+
},
|
|
2160
|
+
"noMisrefactoredShorthandAssign": {
|
|
2161
|
+
"description": "Disallow shorthand assign when variable appears on both sides.",
|
|
2162
|
+
"anyOf": [
|
|
2163
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2164
|
+
{ "type": "null" }
|
|
2165
|
+
]
|
|
2166
|
+
},
|
|
1882
2167
|
"noPrototypeBuiltins": {
|
|
1883
2168
|
"description": "Disallow direct use of Object.prototype builtins.",
|
|
1884
2169
|
"anyOf": [
|
|
@@ -1996,6 +2281,18 @@
|
|
|
1996
2281
|
}
|
|
1997
2282
|
]
|
|
1998
2283
|
},
|
|
2284
|
+
"ValidAriaRoleOptions": {
|
|
2285
|
+
"type": "object",
|
|
2286
|
+
"required": ["allowedInvalidRoles", "ignoreNonDom"],
|
|
2287
|
+
"properties": {
|
|
2288
|
+
"allowedInvalidRoles": {
|
|
2289
|
+
"type": "array",
|
|
2290
|
+
"items": { "type": "string" }
|
|
2291
|
+
},
|
|
2292
|
+
"ignoreNonDom": { "type": "boolean" }
|
|
2293
|
+
},
|
|
2294
|
+
"additionalProperties": false
|
|
2295
|
+
},
|
|
1999
2296
|
"VcsClientKind": {
|
|
2000
2297
|
"oneOf": [
|
|
2001
2298
|
{
|
|
@@ -2016,6 +2313,10 @@
|
|
|
2016
2313
|
{ "type": "null" }
|
|
2017
2314
|
]
|
|
2018
2315
|
},
|
|
2316
|
+
"defaultBranch": {
|
|
2317
|
+
"description": "The main branch of the project",
|
|
2318
|
+
"type": ["string", "null"]
|
|
2319
|
+
},
|
|
2019
2320
|
"enabled": {
|
|
2020
2321
|
"description": "Whether Biome should integrate itself with the VCS client",
|
|
2021
2322
|
"type": ["boolean", "null"]
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/biome","version":"1.
|
|
1
|
+
{"name":"@biomejs/biome","version":"1.4.1-nightly.22dd4e1","bin":"bin/biome","scripts":{"postinstall":"node scripts/postinstall.js"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"packages/@biomejs/biome"},"author":"Emanuele Stoppa","license":"MIT OR Apache-2.0","bugs":"https://github.com/biomejs/biome/issues","description":"Biome is a toolchain for the web: formatter, linter and more","files":["bin/biome","scripts/postinstall.js","configuration_schema.json","README.md","LICENSE-APACHE","LICENSE-MIT","ROME-LICENSE-MIT"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"funding":{"type":"opencollective","url":"https://opencollective.com/biome"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.4.1-nightly.22dd4e1","@biomejs/cli-win32-arm64":"1.4.1-nightly.22dd4e1","@biomejs/cli-darwin-x64":"1.4.1-nightly.22dd4e1","@biomejs/cli-darwin-arm64":"1.4.1-nightly.22dd4e1","@biomejs/cli-linux-x64":"1.4.1-nightly.22dd4e1","@biomejs/cli-linux-arm64":"1.4.1-nightly.22dd4e1","@biomejs/cli-linux-x64-musl":"1.4.1-nightly.22dd4e1","@biomejs/cli-linux-arm64-musl":"1.4.1-nightly.22dd4e1"}}
|