@biomejs/biome 1.1.2-nightly.9c28238 → 1.2.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.
@@ -76,6 +76,13 @@
76
76
  { "type": "null" }
77
77
  ]
78
78
  },
79
+ "noAriaUnsupportedElements": {
80
+ "description": "Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.",
81
+ "anyOf": [
82
+ { "$ref": "#/definitions/RuleConfiguration" },
83
+ { "type": "null" }
84
+ ]
85
+ },
79
86
  "noAutofocus": {
80
87
  "description": "Enforce that autoFocus prop is not used on elements.",
81
88
  "anyOf": [
@@ -111,6 +118,13 @@
111
118
  { "type": "null" }
112
119
  ]
113
120
  },
121
+ "noNoninteractiveTabindex": {
122
+ "description": "Enforce that tabIndex is not assigned to non-interactive HTML elements.",
123
+ "anyOf": [
124
+ { "$ref": "#/definitions/RuleConfiguration" },
125
+ { "type": "null" }
126
+ ]
127
+ },
114
128
  "noPositiveTabindex": {
115
129
  "description": "Prevent the usage of positive integers on tabIndex property",
116
130
  "anyOf": [
@@ -125,6 +139,13 @@
125
139
  { "type": "null" }
126
140
  ]
127
141
  },
142
+ "noRedundantRoles": {
143
+ "description": "Enforce explicit role property is not the same as implicit/default role property on an element.",
144
+ "anyOf": [
145
+ { "$ref": "#/definitions/RuleConfiguration" },
146
+ { "type": "null" }
147
+ ]
148
+ },
128
149
  "noSvgWithoutTitle": {
129
150
  "description": "Enforces the usage of the title element for the svg element.",
130
151
  "anyOf": [
@@ -220,6 +241,13 @@
220
241
  { "type": "null" }
221
242
  ]
222
243
  },
244
+ "useValidAriaValues": {
245
+ "description": "Enforce that ARIA state and property values are valid.",
246
+ "anyOf": [
247
+ { "$ref": "#/definitions/RuleConfiguration" },
248
+ { "type": "null" }
249
+ ]
250
+ },
223
251
  "useValidLang": {
224
252
  "description": "Ensure that the attribute passed to the lang attribute is a correct ISO language and/or country.",
225
253
  "anyOf": [
@@ -238,6 +266,13 @@
238
266
  "description": "It enables ALL rules for this group.",
239
267
  "type": ["boolean", "null"]
240
268
  },
269
+ "noBannedTypes": {
270
+ "description": "Disallow primitive type aliases and misleading types.",
271
+ "anyOf": [
272
+ { "$ref": "#/definitions/RuleConfiguration" },
273
+ { "type": "null" }
274
+ ]
275
+ },
241
276
  "noExtraBooleanCast": {
242
277
  "description": "Disallow unnecessary boolean casts",
243
278
  "anyOf": [
@@ -259,6 +294,13 @@
259
294
  { "type": "null" }
260
295
  ]
261
296
  },
297
+ "noStaticOnlyClass": {
298
+ "description": "This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.",
299
+ "anyOf": [
300
+ { "$ref": "#/definitions/RuleConfiguration" },
301
+ { "type": "null" }
302
+ ]
303
+ },
262
304
  "noUselessCatch": {
263
305
  "description": "Disallow unnecessary catch clauses.",
264
306
  "anyOf": [
@@ -273,6 +315,13 @@
273
315
  { "type": "null" }
274
316
  ]
275
317
  },
318
+ "noUselessEmptyExport": {
319
+ "description": "Disallow empty exports that don't change anything in a module file.",
320
+ "anyOf": [
321
+ { "$ref": "#/definitions/RuleConfiguration" },
322
+ { "type": "null" }
323
+ ]
324
+ },
276
325
  "noUselessFragments": {
277
326
  "description": "Disallow unnecessary fragments",
278
327
  "anyOf": [
@@ -301,6 +350,13 @@
301
350
  { "type": "null" }
302
351
  ]
303
352
  },
353
+ "noUselessThisAlias": {
354
+ "description": "Disallow useless this aliasing.",
355
+ "anyOf": [
356
+ { "$ref": "#/definitions/RuleConfiguration" },
357
+ { "type": "null" }
358
+ ]
359
+ },
304
360
  "noUselessTypeConstraint": {
305
361
  "description": "Disallow using any or unknown as type constraint.",
306
362
  "anyOf": [
@@ -392,6 +448,13 @@
392
448
  { "type": "null" }
393
449
  ]
394
450
  },
451
+ "noConstantCondition": {
452
+ "description": "Disallow constant expressions in conditions",
453
+ "anyOf": [
454
+ { "$ref": "#/definitions/RuleConfiguration" },
455
+ { "type": "null" }
456
+ ]
457
+ },
395
458
  "noConstructorReturn": {
396
459
  "description": "Disallow returning a value from a constructor.",
397
460
  "anyOf": [
@@ -434,6 +497,13 @@
434
497
  { "type": "null" }
435
498
  ]
436
499
  },
500
+ "noNonoctalDecimalEscape": {
501
+ "description": "Disallow \\8 and \\9 escape sequences in string literals.",
502
+ "anyOf": [
503
+ { "$ref": "#/definitions/RuleConfiguration" },
504
+ { "type": "null" }
505
+ ]
506
+ },
437
507
  "noPrecisionLoss": {
438
508
  "description": "Disallow literal numbers that lose precision",
439
509
  "anyOf": [
@@ -448,6 +518,13 @@
448
518
  { "type": "null" }
449
519
  ]
450
520
  },
521
+ "noSelfAssign": {
522
+ "description": "Disallow assignments where both sides are exactly the same.",
523
+ "anyOf": [
524
+ { "$ref": "#/definitions/RuleConfiguration" },
525
+ { "type": "null" }
526
+ ]
527
+ },
451
528
  "noSetterReturn": {
452
529
  "description": "Disallow returning a value from a setter",
453
530
  "anyOf": [
@@ -895,20 +972,6 @@
895
972
  { "type": "null" }
896
973
  ]
897
974
  },
898
- "noAriaUnsupportedElements": {
899
- "description": "Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.",
900
- "anyOf": [
901
- { "$ref": "#/definitions/RuleConfiguration" },
902
- { "type": "null" }
903
- ]
904
- },
905
- "noBannedTypes": {
906
- "description": "Disallow primitive type aliases and misleading types.",
907
- "anyOf": [
908
- { "$ref": "#/definitions/RuleConfiguration" },
909
- { "type": "null" }
910
- ]
911
- },
912
975
  "noConfusingVoidType": {
913
976
  "description": "Disallow void type outside of generic or return types.",
914
977
  "anyOf": [
@@ -916,20 +979,6 @@
916
979
  { "type": "null" }
917
980
  ]
918
981
  },
919
- "noConstantCondition": {
920
- "description": "Disallow constant expressions in conditions",
921
- "anyOf": [
922
- { "$ref": "#/definitions/RuleConfiguration" },
923
- { "type": "null" }
924
- ]
925
- },
926
- "noControlCharactersInRegex": {
927
- "description": "Prevents from having control characters and some escape sequences that match control characters in regular expressions.",
928
- "anyOf": [
929
- { "$ref": "#/definitions/RuleConfiguration" },
930
- { "type": "null" }
931
- ]
932
- },
933
982
  "noDuplicateJsonKeys": {
934
983
  "description": "Disallow two keys with the same name inside a JSON object.",
935
984
  "anyOf": [
@@ -965,62 +1014,6 @@
965
1014
  { "type": "null" }
966
1015
  ]
967
1016
  },
968
- "noNoninteractiveTabindex": {
969
- "description": "Enforce that tabIndex is not assigned to non-interactive HTML elements.",
970
- "anyOf": [
971
- { "$ref": "#/definitions/RuleConfiguration" },
972
- { "type": "null" }
973
- ]
974
- },
975
- "noNonoctalDecimalEscape": {
976
- "description": "Disallow \\8 and \\9 escape sequences in string literals.",
977
- "anyOf": [
978
- { "$ref": "#/definitions/RuleConfiguration" },
979
- { "type": "null" }
980
- ]
981
- },
982
- "noRedundantRoles": {
983
- "description": "Enforce explicit role property is not the same as implicit/default role property on an element.",
984
- "anyOf": [
985
- { "$ref": "#/definitions/RuleConfiguration" },
986
- { "type": "null" }
987
- ]
988
- },
989
- "noSelfAssign": {
990
- "description": "Disallow assignments where both sides are exactly the same.",
991
- "anyOf": [
992
- { "$ref": "#/definitions/RuleConfiguration" },
993
- { "type": "null" }
994
- ]
995
- },
996
- "noStaticOnlyClass": {
997
- "description": "This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.",
998
- "anyOf": [
999
- { "$ref": "#/definitions/RuleConfiguration" },
1000
- { "type": "null" }
1001
- ]
1002
- },
1003
- "noUnsafeDeclarationMerging": {
1004
- "description": "Disallow unsafe declaration merging between interfaces and classes.",
1005
- "anyOf": [
1006
- { "$ref": "#/definitions/RuleConfiguration" },
1007
- { "type": "null" }
1008
- ]
1009
- },
1010
- "noUselessEmptyExport": {
1011
- "description": "Disallow empty exports that don't change anything in a module file.",
1012
- "anyOf": [
1013
- { "$ref": "#/definitions/RuleConfiguration" },
1014
- { "type": "null" }
1015
- ]
1016
- },
1017
- "noUselessThisAlias": {
1018
- "description": "Disallow useless this aliasing.",
1019
- "anyOf": [
1020
- { "$ref": "#/definitions/RuleConfiguration" },
1021
- { "type": "null" }
1022
- ]
1023
- },
1024
1017
  "noVoid": {
1025
1018
  "description": "Disallow the use of void operators, which is not a familiar operator.",
1026
1019
  "anyOf": [
@@ -1032,13 +1025,6 @@
1032
1025
  "description": "It enables the recommended rules for this group",
1033
1026
  "type": ["boolean", "null"]
1034
1027
  },
1035
- "useAriaPropTypes": {
1036
- "description": "Enforce that ARIA state and property values are valid.",
1037
- "anyOf": [
1038
- { "$ref": "#/definitions/RuleConfiguration" },
1039
- { "type": "null" }
1040
- ]
1041
- },
1042
1028
  "useArrowFunction": {
1043
1029
  "description": "Use arrow functions over function expressions.",
1044
1030
  "anyOf": [
@@ -1060,13 +1046,6 @@
1060
1046
  { "type": "null" }
1061
1047
  ]
1062
1048
  },
1063
- "useGetterReturn": {
1064
- "description": "Enforce get methods to always return a value.",
1065
- "anyOf": [
1066
- { "$ref": "#/definitions/RuleConfiguration" },
1067
- { "type": "null" }
1068
- ]
1069
- },
1070
1049
  "useGroupedTypeImport": {
1071
1050
  "description": "Enforce the use of import type when an import only has specifiers with type qualifier.",
1072
1051
  "anyOf": [
@@ -1094,20 +1073,6 @@
1094
1073
  { "$ref": "#/definitions/RuleConfiguration" },
1095
1074
  { "type": "null" }
1096
1075
  ]
1097
- },
1098
- "useLiteralEnumMembers": {
1099
- "description": "Require all enum members to be literal values.",
1100
- "anyOf": [
1101
- { "$ref": "#/definitions/RuleConfiguration" },
1102
- { "type": "null" }
1103
- ]
1104
- },
1105
- "useNamingConvention": {
1106
- "description": "Enforce naming conventions for everything across a codebase.",
1107
- "anyOf": [
1108
- { "$ref": "#/definitions/RuleConfiguration" },
1109
- { "type": "null" }
1110
- ]
1111
1076
  }
1112
1077
  }
1113
1078
  },
@@ -1429,6 +1394,20 @@
1429
1394
  { "type": "null" }
1430
1395
  ]
1431
1396
  },
1397
+ "useLiteralEnumMembers": {
1398
+ "description": "Require all enum members to be literal values.",
1399
+ "anyOf": [
1400
+ { "$ref": "#/definitions/RuleConfiguration" },
1401
+ { "type": "null" }
1402
+ ]
1403
+ },
1404
+ "useNamingConvention": {
1405
+ "description": "Enforce naming conventions for everything across a codebase.",
1406
+ "anyOf": [
1407
+ { "$ref": "#/definitions/RuleConfiguration" },
1408
+ { "type": "null" }
1409
+ ]
1410
+ },
1432
1411
  "useNumericLiterals": {
1433
1412
  "description": "Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals",
1434
1413
  "anyOf": [
@@ -1558,6 +1537,13 @@
1558
1537
  { "type": "null" }
1559
1538
  ]
1560
1539
  },
1540
+ "noControlCharactersInRegex": {
1541
+ "description": "Prevents from having control characters and some escape sequences that match control characters in regular expressions.",
1542
+ "anyOf": [
1543
+ { "$ref": "#/definitions/RuleConfiguration" },
1544
+ { "type": "null" }
1545
+ ]
1546
+ },
1561
1547
  "noDebugger": {
1562
1548
  "description": "Disallow the use of debugger",
1563
1549
  "anyOf": [
@@ -1691,6 +1677,13 @@
1691
1677
  { "type": "null" }
1692
1678
  ]
1693
1679
  },
1680
+ "noUnsafeDeclarationMerging": {
1681
+ "description": "Disallow unsafe declaration merging between interfaces and classes.",
1682
+ "anyOf": [
1683
+ { "$ref": "#/definitions/RuleConfiguration" },
1684
+ { "type": "null" }
1685
+ ]
1686
+ },
1694
1687
  "noUnsafeNegation": {
1695
1688
  "description": "Disallow using unsafe negation.",
1696
1689
  "anyOf": [
@@ -1709,6 +1702,13 @@
1709
1702
  { "type": "null" }
1710
1703
  ]
1711
1704
  },
1705
+ "useGetterReturn": {
1706
+ "description": "Enforce get methods to always return a value.",
1707
+ "anyOf": [
1708
+ { "$ref": "#/definitions/RuleConfiguration" },
1709
+ { "type": "null" }
1710
+ ]
1711
+ },
1712
1712
  "useNamespaceKeyword": {
1713
1713
  "description": "Require using the namespace keyword over the module keyword to declare TypeScript namespaces.",
1714
1714
  "anyOf": [
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/biome","version":"1.1.2-nightly.9c28238","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","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"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.1.2-nightly.9c28238","@biomejs/cli-win32-arm64":"1.1.2-nightly.9c28238","@biomejs/cli-darwin-x64":"1.1.2-nightly.9c28238","@biomejs/cli-darwin-arm64":"1.1.2-nightly.9c28238","@biomejs/cli-linux-x64":"1.1.2-nightly.9c28238","@biomejs/cli-linux-arm64":"1.1.2-nightly.9c28238"}}
1
+ {"name":"@biomejs/biome","version":"1.2.0","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","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"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.2.0","@biomejs/cli-win32-arm64":"1.2.0","@biomejs/cli-darwin-x64":"1.2.0","@biomejs/cli-darwin-arm64":"1.2.0","@biomejs/cli-linux-x64":"1.2.0","@biomejs/cli-linux-arm64":"1.2.0"}}