@biomejs/biome 1.5.3-nightly.dca6a7a → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +1 -1
- package/README.md +1 -1
- package/README.pt-br.md +1 -1
- package/README.zh-CN.md +1 -1
- package/configuration_schema.json +402 -185
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
**Biome は _JavaScript_, _TypeScript_, _JSX_ そして _JSON_ 向けの[高速なFormatter](./benchmark#formatting)**であり、**[_Prettier_ との互換性は97%](https://console.algora.io/challenges/prettier)** を達成しています。
|
|
39
39
|
|
|
40
|
-
**Biome は _JavaScript_, _TypeScript_, _JSX_ のための[高性能なLinter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** であり、ESLint,
|
|
40
|
+
**Biome は _JavaScript_, _TypeScript_, _JSX_ のための[高性能なLinter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** であり、ESLint, typescript-eslint, [その他のソース](https://github.com/biomejs/biome/discussions/3)から **[170以上のルール](https://biomejs.dev/linter/rules/)**を提供しています。Biome は**詳細で文脈に沿った結果を出力**するため、コードを改善し、より良いプログラマになるための手助けをします!
|
|
41
41
|
|
|
42
42
|
**Biome** は最初から[**エディタ内で対話的に**](https://biomejs.dev/ja/guides/integrate-in-editor/)使用できるように設計されています。
|
|
43
43
|
あなたがコードを書いているときに、形の崩れたコードを format と lint することができます。
|
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ English | [简体中文](https://github.com/biomejs/biome/blob/main/packages/%40
|
|
|
38
38
|
|
|
39
39
|
**Biome is a [fast formatter](./benchmark#formatting)** for _JavaScript_, _TypeScript_, _JSX_, and _JSON_ that scores **[97% compatibility with _Prettier_](https://console.algora.io/challenges/prettier)**.
|
|
40
40
|
|
|
41
|
-
**Biome is a [performant linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** for _JavaScript_, _TypeScript_, and _JSX_ that features **[more than
|
|
41
|
+
**Biome is a [performant linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** for _JavaScript_, _TypeScript_, and _JSX_ that features **[more than 200 rules](https://biomejs.dev/linter/rules/)** from ESLint, typescript-eslint, and [other sources](https://github.com/biomejs/biome/discussions/3).
|
|
42
42
|
It **outputs detailed and contextualized diagnostics** that help you to improve your code and become a better programmer!
|
|
43
43
|
|
|
44
44
|
**Biome** is designed from the start to be used [interactively within an editor](https://biomejs.dev/guides/integrate-in-editor/).
|
package/README.pt-br.md
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
**Biome é um [formatador rápido](./benchmark#formatting)** para _JavaScript_, _TypeScript_, _JSX_, e _JSON_ que atinge **[97% de compatibilidade com o _Prettier_](https://console.algora.io/challenges/prettier)**.
|
|
39
39
|
|
|
40
|
-
**Biome é um [linter eficiente](https://github.com/biomejs/biome/tree/main/benchmark#linting)** para _JavaScript_, _TypeScript_, e _JSX_ que possui **[mais de 190 regras](https://biomejs.dev/linter/rules/)** do ESLint,
|
|
40
|
+
**Biome é um [linter eficiente](https://github.com/biomejs/biome/tree/main/benchmark#linting)** para _JavaScript_, _TypeScript_, e _JSX_ que possui **[mais de 190 regras](https://biomejs.dev/linter/rules/)** do ESLint, typescript-eslint, e de [outras fontes](https://github.com/biomejs/biome/discussions/3).
|
|
41
41
|
Ele **fornece diagnósticos detalhados e contextualizados** que ajudam você a melhorar seu código e se tornar um programador melhor!
|
|
42
42
|
|
|
43
43
|
**Biome** é projetado desde o início para ser usado [interativamente dentro de um editor](https://biomejs.dev/guides/integrate-in-editor/).
|
package/README.zh-CN.md
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
**Biome 是一个[快速的格式化工具](./benchmark#formatting)**,适用于 _JavaScript_、_TypeScript_、_JSX_、_JSON_ 等,与 _Prettier_ 的兼容性达到了 **[97%](https://console.algora.io/challenges/prettier)**。
|
|
39
39
|
|
|
40
|
-
**Biome 是一个[高性能的 Linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)**,适用于 _JavaScript_、_TypeScript_、_JSX_ 等,包含了来自 ESLint、
|
|
40
|
+
**Biome 是一个[高性能的 Linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)**,适用于 _JavaScript_、_TypeScript_、_JSX_ 等,包含了来自 ESLint、typescript-eslint 和[其他来源](https://github.com/biomejs/biome/discussions/3)的 **[190 余项规则](https://biomejs.dev/zh-cn/linter/rules/)**。它**输出详细且有上下文诊断信息**,能帮助你优化代码,成为一名更好的程序员!
|
|
41
41
|
|
|
42
42
|
**Biome** 从一开始就设计为[在编辑器中交互式使用](https://biomejs.dev/zh-cn/guides/integrate-in-editor/)。它可以在你编写代码时格式化并检查出不规范的代码。
|
|
43
43
|
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
"useValidAriaRole": {
|
|
277
277
|
"description": "Elements with ARIA roles must use a valid, non-abstract ARIA role.",
|
|
278
278
|
"anyOf": [
|
|
279
|
-
{ "$ref": "#/definitions/
|
|
279
|
+
{ "$ref": "#/definitions/ValidAriaRoleConfiguration" },
|
|
280
280
|
{ "type": "null" }
|
|
281
281
|
]
|
|
282
282
|
},
|
|
@@ -294,7 +294,8 @@
|
|
|
294
294
|
{ "type": "null" }
|
|
295
295
|
]
|
|
296
296
|
}
|
|
297
|
-
}
|
|
297
|
+
},
|
|
298
|
+
"additionalProperties": false
|
|
298
299
|
},
|
|
299
300
|
"ArrowParentheses": { "type": "string", "enum": ["always", "asNeeded"] },
|
|
300
301
|
"AttributePosition": { "type": "string", "enum": ["auto", "multiline"] },
|
|
@@ -313,10 +314,17 @@
|
|
|
313
314
|
{ "type": "null" }
|
|
314
315
|
]
|
|
315
316
|
},
|
|
317
|
+
"noEmptyTypeParameters": {
|
|
318
|
+
"description": "Disallow empty type parameters in type aliases and interfaces.",
|
|
319
|
+
"anyOf": [
|
|
320
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
321
|
+
{ "type": "null" }
|
|
322
|
+
]
|
|
323
|
+
},
|
|
316
324
|
"noExcessiveCognitiveComplexity": {
|
|
317
325
|
"description": "Disallow functions that exceed a given Cognitive Complexity score.",
|
|
318
326
|
"anyOf": [
|
|
319
|
-
{ "$ref": "#/definitions/
|
|
327
|
+
{ "$ref": "#/definitions/ComplexityConfiguration" },
|
|
320
328
|
{ "type": "null" }
|
|
321
329
|
]
|
|
322
330
|
},
|
|
@@ -390,6 +398,13 @@
|
|
|
390
398
|
{ "type": "null" }
|
|
391
399
|
]
|
|
392
400
|
},
|
|
401
|
+
"noUselessLoneBlockStatements": {
|
|
402
|
+
"description": "Disallow unnecessary nested block statements.",
|
|
403
|
+
"anyOf": [
|
|
404
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
405
|
+
{ "type": "null" }
|
|
406
|
+
]
|
|
407
|
+
},
|
|
393
408
|
"noUselessRename": {
|
|
394
409
|
"description": "Disallow renaming import, export, and destructured assignments to the same name.",
|
|
395
410
|
"anyOf": [
|
|
@@ -485,7 +500,14 @@
|
|
|
485
500
|
{ "type": "null" }
|
|
486
501
|
]
|
|
487
502
|
}
|
|
488
|
-
}
|
|
503
|
+
},
|
|
504
|
+
"additionalProperties": false
|
|
505
|
+
},
|
|
506
|
+
"ComplexityConfiguration": {
|
|
507
|
+
"anyOf": [
|
|
508
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
509
|
+
{ "$ref": "#/definitions/RuleWithComplexityOptions" }
|
|
510
|
+
]
|
|
489
511
|
},
|
|
490
512
|
"ComplexityOptions": {
|
|
491
513
|
"description": "Options for the rule `noExcessiveCognitiveComplexity`.",
|
|
@@ -515,6 +537,12 @@
|
|
|
515
537
|
}
|
|
516
538
|
]
|
|
517
539
|
},
|
|
540
|
+
"ConsistentArrayTypeConfiguration": {
|
|
541
|
+
"anyOf": [
|
|
542
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
543
|
+
{ "$ref": "#/definitions/RuleWithConsistentArrayTypeOptions" }
|
|
544
|
+
]
|
|
545
|
+
},
|
|
518
546
|
"ConsistentArrayTypeOptions": {
|
|
519
547
|
"type": "object",
|
|
520
548
|
"required": ["syntax"],
|
|
@@ -601,6 +629,13 @@
|
|
|
601
629
|
{ "type": "null" }
|
|
602
630
|
]
|
|
603
631
|
},
|
|
632
|
+
"noInvalidUseBeforeDeclaration": {
|
|
633
|
+
"description": "Disallow the use of variables and function parameters before their declaration",
|
|
634
|
+
"anyOf": [
|
|
635
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
636
|
+
{ "type": "null" }
|
|
637
|
+
]
|
|
638
|
+
},
|
|
604
639
|
"noNewSymbol": {
|
|
605
640
|
"description": "Disallow new operators with the Symbol object.",
|
|
606
641
|
"anyOf": [
|
|
@@ -699,6 +734,13 @@
|
|
|
699
734
|
{ "type": "null" }
|
|
700
735
|
]
|
|
701
736
|
},
|
|
737
|
+
"noUnusedImports": {
|
|
738
|
+
"description": "Disallow unused imports.",
|
|
739
|
+
"anyOf": [
|
|
740
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
741
|
+
{ "type": "null" }
|
|
742
|
+
]
|
|
743
|
+
},
|
|
702
744
|
"noUnusedLabels": {
|
|
703
745
|
"description": "Disallow unused labels.",
|
|
704
746
|
"anyOf": [
|
|
@@ -706,6 +748,13 @@
|
|
|
706
748
|
{ "type": "null" }
|
|
707
749
|
]
|
|
708
750
|
},
|
|
751
|
+
"noUnusedPrivateClassMembers": {
|
|
752
|
+
"description": "Disallow unused private class members",
|
|
753
|
+
"anyOf": [
|
|
754
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
755
|
+
{ "type": "null" }
|
|
756
|
+
]
|
|
757
|
+
},
|
|
709
758
|
"noUnusedVariables": {
|
|
710
759
|
"description": "Disallow unused variables.",
|
|
711
760
|
"anyOf": [
|
|
@@ -734,14 +783,14 @@
|
|
|
734
783
|
"useExhaustiveDependencies": {
|
|
735
784
|
"description": "Enforce all dependencies are correctly specified in a React hook.",
|
|
736
785
|
"anyOf": [
|
|
737
|
-
{ "$ref": "#/definitions/
|
|
786
|
+
{ "$ref": "#/definitions/HooksConfiguration" },
|
|
738
787
|
{ "type": "null" }
|
|
739
788
|
]
|
|
740
789
|
},
|
|
741
790
|
"useHookAtTopLevel": {
|
|
742
791
|
"description": "Enforce that all React hooks are being called from the Top Level component functions.",
|
|
743
792
|
"anyOf": [
|
|
744
|
-
{ "$ref": "#/definitions/
|
|
793
|
+
{ "$ref": "#/definitions/DeprecatedHooksConfiguration" },
|
|
745
794
|
{ "type": "null" }
|
|
746
795
|
]
|
|
747
796
|
},
|
|
@@ -766,7 +815,8 @@
|
|
|
766
815
|
{ "type": "null" }
|
|
767
816
|
]
|
|
768
817
|
}
|
|
769
|
-
}
|
|
818
|
+
},
|
|
819
|
+
"additionalProperties": false
|
|
770
820
|
},
|
|
771
821
|
"CssConfiguration": {
|
|
772
822
|
"description": "Options applied to CSS files",
|
|
@@ -837,6 +887,12 @@
|
|
|
837
887
|
},
|
|
838
888
|
"additionalProperties": false
|
|
839
889
|
},
|
|
890
|
+
"DeprecatedHooksConfiguration": {
|
|
891
|
+
"anyOf": [
|
|
892
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
893
|
+
{ "$ref": "#/definitions/RuleWithDeprecatedHooksOptions" }
|
|
894
|
+
]
|
|
895
|
+
},
|
|
840
896
|
"DeprecatedHooksOptions": {
|
|
841
897
|
"description": "Options for the `useHookAtTopLevel` rule have been deprecated, since we now use the React hook naming convention to determine whether a function is a hook.",
|
|
842
898
|
"type": "object",
|
|
@@ -889,6 +945,12 @@
|
|
|
889
945
|
"items": { "$ref": "#/definitions/FilenameCase" },
|
|
890
946
|
"uniqueItems": true
|
|
891
947
|
},
|
|
948
|
+
"FilenamingConventionConfiguration": {
|
|
949
|
+
"anyOf": [
|
|
950
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
951
|
+
{ "$ref": "#/definitions/RuleWithFilenamingConventionOptions" }
|
|
952
|
+
]
|
|
953
|
+
},
|
|
892
954
|
"FilenamingConventionOptions": {
|
|
893
955
|
"description": "Rule's options.",
|
|
894
956
|
"type": "object",
|
|
@@ -897,6 +959,10 @@
|
|
|
897
959
|
"description": "Allowed cases for _TypeScript_ `enum` member names.",
|
|
898
960
|
"allOf": [{ "$ref": "#/definitions/FilenameCases" }]
|
|
899
961
|
},
|
|
962
|
+
"requireAscii": {
|
|
963
|
+
"description": "If `false`, then non-ASCII characters are allowed.",
|
|
964
|
+
"type": "boolean"
|
|
965
|
+
},
|
|
900
966
|
"strictCase": {
|
|
901
967
|
"description": "If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].",
|
|
902
968
|
"type": "boolean"
|
|
@@ -983,35 +1049,45 @@
|
|
|
983
1049
|
},
|
|
984
1050
|
"additionalProperties": false
|
|
985
1051
|
},
|
|
986
|
-
"
|
|
1052
|
+
"Hook": {
|
|
987
1053
|
"type": "object",
|
|
988
|
-
"required": ["name"],
|
|
1054
|
+
"required": ["name", "stableResult"],
|
|
989
1055
|
"properties": {
|
|
990
1056
|
"closureIndex": {
|
|
991
|
-
"description": "The \"position\" of the closure function, starting from zero.\n\
|
|
1057
|
+
"description": "The \"position\" of the closure function, starting from zero.\n\nFor example, for React's `useEffect()` hook, the closure index is 0.",
|
|
992
1058
|
"type": ["integer", "null"],
|
|
993
|
-
"format": "
|
|
1059
|
+
"format": "uint8",
|
|
994
1060
|
"minimum": 0.0
|
|
995
1061
|
},
|
|
996
1062
|
"dependenciesIndex": {
|
|
997
|
-
"description": "The \"position\" of the array of dependencies, starting from zero.",
|
|
1063
|
+
"description": "The \"position\" of the array of dependencies, starting from zero.\n\nFor example, for React's `useEffect()` hook, the dependencies index is 1.",
|
|
998
1064
|
"type": ["integer", "null"],
|
|
999
|
-
"format": "
|
|
1065
|
+
"format": "uint8",
|
|
1000
1066
|
"minimum": 0.0
|
|
1001
1067
|
},
|
|
1002
|
-
"name": { "description": "The name of the hook", "type": "string" }
|
|
1068
|
+
"name": { "description": "The name of the hook.", "type": "string" },
|
|
1069
|
+
"stableResult": {
|
|
1070
|
+
"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]`.",
|
|
1071
|
+
"allOf": [{ "$ref": "#/definitions/StableHookResult" }]
|
|
1072
|
+
}
|
|
1003
1073
|
},
|
|
1004
1074
|
"additionalProperties": false
|
|
1005
1075
|
},
|
|
1076
|
+
"HooksConfiguration": {
|
|
1077
|
+
"anyOf": [
|
|
1078
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1079
|
+
{ "$ref": "#/definitions/RuleWithHooksOptions" }
|
|
1080
|
+
]
|
|
1081
|
+
},
|
|
1006
1082
|
"HooksOptions": {
|
|
1007
1083
|
"description": "Options for the rule `useExhaustiveDependencies`",
|
|
1008
1084
|
"type": "object",
|
|
1009
1085
|
"required": ["hooks"],
|
|
1010
1086
|
"properties": {
|
|
1011
1087
|
"hooks": {
|
|
1012
|
-
"description": "List of
|
|
1088
|
+
"description": "List of hooks of which the dependencies should be validated.",
|
|
1013
1089
|
"type": "array",
|
|
1014
|
-
"items": { "$ref": "#/definitions/
|
|
1090
|
+
"items": { "$ref": "#/definitions/Hook" }
|
|
1015
1091
|
}
|
|
1016
1092
|
},
|
|
1017
1093
|
"additionalProperties": false
|
|
@@ -1199,6 +1275,13 @@
|
|
|
1199
1275
|
"lineWidth": {
|
|
1200
1276
|
"description": "What's the max width of a line applied to JSON (and its super languages) files. Defaults to 80.",
|
|
1201
1277
|
"anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
|
|
1278
|
+
},
|
|
1279
|
+
"trailingCommas": {
|
|
1280
|
+
"description": "Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to \"none\".",
|
|
1281
|
+
"anyOf": [
|
|
1282
|
+
{ "$ref": "#/definitions/TrailingCommas" },
|
|
1283
|
+
{ "type": "null" }
|
|
1284
|
+
]
|
|
1202
1285
|
}
|
|
1203
1286
|
},
|
|
1204
1287
|
"additionalProperties": false
|
|
@@ -1265,6 +1348,12 @@
|
|
|
1265
1348
|
},
|
|
1266
1349
|
"additionalProperties": false
|
|
1267
1350
|
},
|
|
1351
|
+
"NamingConventionConfiguration": {
|
|
1352
|
+
"anyOf": [
|
|
1353
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1354
|
+
{ "$ref": "#/definitions/RuleWithNamingConventionOptions" }
|
|
1355
|
+
]
|
|
1356
|
+
},
|
|
1268
1357
|
"NamingConventionOptions": {
|
|
1269
1358
|
"description": "Rule's options.",
|
|
1270
1359
|
"type": "object",
|
|
@@ -1273,6 +1362,10 @@
|
|
|
1273
1362
|
"description": "Allowed cases for _TypeScript_ `enum` member names.",
|
|
1274
1363
|
"allOf": [{ "$ref": "#/definitions/EnumMemberCase" }]
|
|
1275
1364
|
},
|
|
1365
|
+
"requireAscii": {
|
|
1366
|
+
"description": "If `false`, then non-ASCII characters are allowed.",
|
|
1367
|
+
"type": "boolean"
|
|
1368
|
+
},
|
|
1276
1369
|
"strictCase": {
|
|
1277
1370
|
"description": "If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].",
|
|
1278
1371
|
"type": "boolean"
|
|
@@ -1288,64 +1381,57 @@
|
|
|
1288
1381
|
"description": "It enables ALL rules for this group.",
|
|
1289
1382
|
"type": ["boolean", "null"]
|
|
1290
1383
|
},
|
|
1291
|
-
"
|
|
1292
|
-
"description": "Disallow the use of
|
|
1384
|
+
"noBarrelFile": {
|
|
1385
|
+
"description": "Disallow the use of barrel file.",
|
|
1293
1386
|
"anyOf": [
|
|
1294
1387
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1295
1388
|
{ "type": "null" }
|
|
1296
1389
|
]
|
|
1297
1390
|
},
|
|
1298
|
-
"
|
|
1299
|
-
"description": "Disallow
|
|
1391
|
+
"noConsole": {
|
|
1392
|
+
"description": "Disallow the use of console.",
|
|
1300
1393
|
"anyOf": [
|
|
1301
1394
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1302
1395
|
{ "type": "null" }
|
|
1303
1396
|
]
|
|
1304
1397
|
},
|
|
1305
|
-
"
|
|
1306
|
-
"description": "Disallow
|
|
1398
|
+
"noDuplicateJsonKeys": {
|
|
1399
|
+
"description": "Disallow two keys with the same name inside a JSON object.",
|
|
1307
1400
|
"anyOf": [
|
|
1308
1401
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1309
1402
|
{ "type": "null" }
|
|
1310
1403
|
]
|
|
1311
1404
|
},
|
|
1312
|
-
"
|
|
1313
|
-
"description": "
|
|
1405
|
+
"noDuplicateTestHooks": {
|
|
1406
|
+
"description": "A describe block should not contain duplicate hooks.",
|
|
1314
1407
|
"anyOf": [
|
|
1315
1408
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1316
1409
|
{ "type": "null" }
|
|
1317
1410
|
]
|
|
1318
1411
|
},
|
|
1319
|
-
"
|
|
1320
|
-
"description": "
|
|
1412
|
+
"noExcessiveNestedTestSuites": {
|
|
1413
|
+
"description": "This rule enforces a maximum depth to nested describe() in test files.",
|
|
1321
1414
|
"anyOf": [
|
|
1322
1415
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1323
1416
|
{ "type": "null" }
|
|
1324
1417
|
]
|
|
1325
1418
|
},
|
|
1326
|
-
"
|
|
1327
|
-
"description": "Disallow
|
|
1419
|
+
"noExportsInTest": {
|
|
1420
|
+
"description": "Disallow using export or module.exports in files containing tests",
|
|
1328
1421
|
"anyOf": [
|
|
1329
1422
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1330
1423
|
{ "type": "null" }
|
|
1331
1424
|
]
|
|
1332
1425
|
},
|
|
1333
|
-
"
|
|
1334
|
-
"description": "Disallow
|
|
1426
|
+
"noFocusedTests": {
|
|
1427
|
+
"description": "Disallow focused tests.",
|
|
1335
1428
|
"anyOf": [
|
|
1336
1429
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1337
1430
|
{ "type": "null" }
|
|
1338
1431
|
]
|
|
1339
1432
|
},
|
|
1340
|
-
"
|
|
1341
|
-
"description": "Disallow the use of
|
|
1342
|
-
"anyOf": [
|
|
1343
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1344
|
-
{ "type": "null" }
|
|
1345
|
-
]
|
|
1346
|
-
},
|
|
1347
|
-
"noMisleadingCharacterClass": {
|
|
1348
|
-
"description": "Disallow characters made with multiple code points in character class syntax.",
|
|
1433
|
+
"noNamespaceImport": {
|
|
1434
|
+
"description": "Disallow the use of namespace imports.",
|
|
1349
1435
|
"anyOf": [
|
|
1350
1436
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1351
1437
|
{ "type": "null" }
|
|
@@ -1359,7 +1445,7 @@
|
|
|
1359
1445
|
]
|
|
1360
1446
|
},
|
|
1361
1447
|
"noReExportAll": {
|
|
1362
|
-
"description": "Avoid re-export all",
|
|
1448
|
+
"description": "Avoid re-export all.",
|
|
1363
1449
|
"anyOf": [
|
|
1364
1450
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1365
1451
|
{ "type": "null" }
|
|
@@ -1368,19 +1454,19 @@
|
|
|
1368
1454
|
"noRestrictedImports": {
|
|
1369
1455
|
"description": "Disallow specified modules when loaded by import or require.",
|
|
1370
1456
|
"anyOf": [
|
|
1371
|
-
{ "$ref": "#/definitions/
|
|
1457
|
+
{ "$ref": "#/definitions/RestrictedImportsConfiguration" },
|
|
1372
1458
|
{ "type": "null" }
|
|
1373
1459
|
]
|
|
1374
1460
|
},
|
|
1375
|
-
"
|
|
1376
|
-
"description": "
|
|
1461
|
+
"noSemicolonInJsx": {
|
|
1462
|
+
"description": "It detects possible \"wrong\" semicolons inside JSX elements.",
|
|
1377
1463
|
"anyOf": [
|
|
1378
1464
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1379
1465
|
{ "type": "null" }
|
|
1380
1466
|
]
|
|
1381
1467
|
},
|
|
1382
|
-
"
|
|
1383
|
-
"description": "Disallow
|
|
1468
|
+
"noSkippedTests": {
|
|
1469
|
+
"description": "Disallow disabled tests.",
|
|
1384
1470
|
"anyOf": [
|
|
1385
1471
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1386
1472
|
{ "type": "null" }
|
|
@@ -1393,27 +1479,6 @@
|
|
|
1393
1479
|
{ "type": "null" }
|
|
1394
1480
|
]
|
|
1395
1481
|
},
|
|
1396
|
-
"noUnusedImports": {
|
|
1397
|
-
"description": "Disallow unused imports.",
|
|
1398
|
-
"anyOf": [
|
|
1399
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1400
|
-
{ "type": "null" }
|
|
1401
|
-
]
|
|
1402
|
-
},
|
|
1403
|
-
"noUnusedPrivateClassMembers": {
|
|
1404
|
-
"description": "Disallow unused private class members",
|
|
1405
|
-
"anyOf": [
|
|
1406
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1407
|
-
{ "type": "null" }
|
|
1408
|
-
]
|
|
1409
|
-
},
|
|
1410
|
-
"noUselessLoneBlockStatements": {
|
|
1411
|
-
"description": "Disallow unnecessary nested block statements.",
|
|
1412
|
-
"anyOf": [
|
|
1413
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1414
|
-
{ "type": "null" }
|
|
1415
|
-
]
|
|
1416
|
-
},
|
|
1417
1482
|
"noUselessTernary": {
|
|
1418
1483
|
"description": "Disallow ternary operators when simpler alternatives exist.",
|
|
1419
1484
|
"anyOf": [
|
|
@@ -1425,48 +1490,6 @@
|
|
|
1425
1490
|
"description": "It enables the recommended rules for this group",
|
|
1426
1491
|
"type": ["boolean", "null"]
|
|
1427
1492
|
},
|
|
1428
|
-
"useAwait": {
|
|
1429
|
-
"description": "Ensure async functions utilize await.",
|
|
1430
|
-
"anyOf": [
|
|
1431
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1432
|
-
{ "type": "null" }
|
|
1433
|
-
]
|
|
1434
|
-
},
|
|
1435
|
-
"useConsistentArrayType": {
|
|
1436
|
-
"description": "Require consistently using either T[] or Array<T>",
|
|
1437
|
-
"anyOf": [
|
|
1438
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1439
|
-
{ "type": "null" }
|
|
1440
|
-
]
|
|
1441
|
-
},
|
|
1442
|
-
"useExportType": {
|
|
1443
|
-
"description": "Promotes the use of export type for types.",
|
|
1444
|
-
"anyOf": [
|
|
1445
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1446
|
-
{ "type": "null" }
|
|
1447
|
-
]
|
|
1448
|
-
},
|
|
1449
|
-
"useFilenamingConvention": {
|
|
1450
|
-
"description": "Enforce naming conventions for JavaScript and TypeScript filenames.",
|
|
1451
|
-
"anyOf": [
|
|
1452
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1453
|
-
{ "type": "null" }
|
|
1454
|
-
]
|
|
1455
|
-
},
|
|
1456
|
-
"useForOf": {
|
|
1457
|
-
"description": "This rule recommends a for-of loop when in a for loop, the index used to extract an item from the iterated array.",
|
|
1458
|
-
"anyOf": [
|
|
1459
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1460
|
-
{ "type": "null" }
|
|
1461
|
-
]
|
|
1462
|
-
},
|
|
1463
|
-
"useGroupedTypeImport": {
|
|
1464
|
-
"description": "Enforce the use of import type when an import only has specifiers with type qualifier.",
|
|
1465
|
-
"anyOf": [
|
|
1466
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1467
|
-
{ "type": "null" }
|
|
1468
|
-
]
|
|
1469
|
-
},
|
|
1470
1493
|
"useImportRestrictions": {
|
|
1471
1494
|
"description": "Disallows package private imports.",
|
|
1472
1495
|
"anyOf": [
|
|
@@ -1474,29 +1497,15 @@
|
|
|
1474
1497
|
{ "type": "null" }
|
|
1475
1498
|
]
|
|
1476
1499
|
},
|
|
1477
|
-
"
|
|
1478
|
-
"description": "
|
|
1500
|
+
"useJsxKeyInIterable": {
|
|
1501
|
+
"description": "Disallow missing key props in iterators/collection literals.",
|
|
1479
1502
|
"anyOf": [
|
|
1480
1503
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1481
1504
|
{ "type": "null" }
|
|
1482
1505
|
]
|
|
1483
1506
|
},
|
|
1484
|
-
"
|
|
1485
|
-
"description": "
|
|
1486
|
-
"anyOf": [
|
|
1487
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1488
|
-
{ "type": "null" }
|
|
1489
|
-
]
|
|
1490
|
-
},
|
|
1491
|
-
"useNumberNamespace": {
|
|
1492
|
-
"description": "Use the Number properties instead of global ones.",
|
|
1493
|
-
"anyOf": [
|
|
1494
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1495
|
-
{ "type": "null" }
|
|
1496
|
-
]
|
|
1497
|
-
},
|
|
1498
|
-
"useShorthandFunctionType": {
|
|
1499
|
-
"description": "Enforce using function types instead of object type with call signatures.",
|
|
1507
|
+
"useNodeAssertStrict": {
|
|
1508
|
+
"description": "Promotes the usage of node:assert/strict over node:assert.",
|
|
1500
1509
|
"anyOf": [
|
|
1501
1510
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1502
1511
|
{ "type": "null" }
|
|
@@ -1505,11 +1514,12 @@
|
|
|
1505
1514
|
"useSortedClasses": {
|
|
1506
1515
|
"description": "Enforce the sorting of CSS utility classes.",
|
|
1507
1516
|
"anyOf": [
|
|
1508
|
-
{ "$ref": "#/definitions/
|
|
1517
|
+
{ "$ref": "#/definitions/UtilityClassSortingConfiguration" },
|
|
1509
1518
|
{ "type": "null" }
|
|
1510
1519
|
]
|
|
1511
1520
|
}
|
|
1512
|
-
}
|
|
1521
|
+
},
|
|
1522
|
+
"additionalProperties": false
|
|
1513
1523
|
},
|
|
1514
1524
|
"OrganizeImports": {
|
|
1515
1525
|
"type": "object",
|
|
@@ -1687,7 +1697,8 @@
|
|
|
1687
1697
|
"description": "It enables the recommended rules for this group",
|
|
1688
1698
|
"type": ["boolean", "null"]
|
|
1689
1699
|
}
|
|
1690
|
-
}
|
|
1700
|
+
},
|
|
1701
|
+
"additionalProperties": false
|
|
1691
1702
|
},
|
|
1692
1703
|
"PlainIndentStyle": {
|
|
1693
1704
|
"oneOf": [
|
|
@@ -1695,52 +1706,14 @@
|
|
|
1695
1706
|
{ "description": "Space", "type": "string", "enum": ["space"] }
|
|
1696
1707
|
]
|
|
1697
1708
|
},
|
|
1698
|
-
"
|
|
1709
|
+
"QuoteProperties": { "type": "string", "enum": ["asNeeded", "preserve"] },
|
|
1710
|
+
"QuoteStyle": { "type": "string", "enum": ["double", "single"] },
|
|
1711
|
+
"RestrictedGlobalsConfiguration": {
|
|
1699
1712
|
"anyOf": [
|
|
1700
|
-
{
|
|
1701
|
-
|
|
1702
|
-
"allOf": [{ "$ref": "#/definitions/ComplexityOptions" }]
|
|
1703
|
-
},
|
|
1704
|
-
{
|
|
1705
|
-
"description": "Options for `useConsistentArrayType` rule",
|
|
1706
|
-
"allOf": [{ "$ref": "#/definitions/ConsistentArrayTypeOptions" }]
|
|
1707
|
-
},
|
|
1708
|
-
{
|
|
1709
|
-
"description": "Options for `useFilenamingConvention` rule",
|
|
1710
|
-
"allOf": [{ "$ref": "#/definitions/FilenamingConventionOptions" }]
|
|
1711
|
-
},
|
|
1712
|
-
{
|
|
1713
|
-
"description": "Options for `useExhaustiveDependencies` rule",
|
|
1714
|
-
"allOf": [{ "$ref": "#/definitions/HooksOptions" }]
|
|
1715
|
-
},
|
|
1716
|
-
{
|
|
1717
|
-
"description": "Deprecated options for `useHookAtTopLevel` rule",
|
|
1718
|
-
"allOf": [{ "$ref": "#/definitions/DeprecatedHooksOptions" }]
|
|
1719
|
-
},
|
|
1720
|
-
{
|
|
1721
|
-
"description": "Options for `useNamingConvention` rule",
|
|
1722
|
-
"allOf": [{ "$ref": "#/definitions/NamingConventionOptions" }]
|
|
1723
|
-
},
|
|
1724
|
-
{
|
|
1725
|
-
"description": "Options for `noRestrictedGlobals` rule",
|
|
1726
|
-
"allOf": [{ "$ref": "#/definitions/RestrictedGlobalsOptions" }]
|
|
1727
|
-
},
|
|
1728
|
-
{
|
|
1729
|
-
"description": "Options for `noRestrictedImports` rule",
|
|
1730
|
-
"allOf": [{ "$ref": "#/definitions/RestrictedImportsOptions" }]
|
|
1731
|
-
},
|
|
1732
|
-
{
|
|
1733
|
-
"description": "Options for `useValidAriaRole` rule",
|
|
1734
|
-
"allOf": [{ "$ref": "#/definitions/ValidAriaRoleOptions" }]
|
|
1735
|
-
},
|
|
1736
|
-
{
|
|
1737
|
-
"description": "Options for `useSortedClasses` rule",
|
|
1738
|
-
"allOf": [{ "$ref": "#/definitions/UtilityClassSortingOptions" }]
|
|
1739
|
-
}
|
|
1713
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1714
|
+
{ "$ref": "#/definitions/RuleWithRestrictedGlobalsOptions" }
|
|
1740
1715
|
]
|
|
1741
1716
|
},
|
|
1742
|
-
"QuoteProperties": { "type": "string", "enum": ["asNeeded", "preserve"] },
|
|
1743
|
-
"QuoteStyle": { "type": "string", "enum": ["double", "single"] },
|
|
1744
1717
|
"RestrictedGlobalsOptions": {
|
|
1745
1718
|
"description": "Options for the rule `noRestrictedGlobals`.",
|
|
1746
1719
|
"type": "object",
|
|
@@ -1754,6 +1727,12 @@
|
|
|
1754
1727
|
},
|
|
1755
1728
|
"additionalProperties": false
|
|
1756
1729
|
},
|
|
1730
|
+
"RestrictedImportsConfiguration": {
|
|
1731
|
+
"anyOf": [
|
|
1732
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1733
|
+
{ "$ref": "#/definitions/RuleWithRestrictedImportsOptions" }
|
|
1734
|
+
]
|
|
1735
|
+
},
|
|
1757
1736
|
"RestrictedImportsOptions": {
|
|
1758
1737
|
"description": "Options for the rule `noRestrictedImports`.",
|
|
1759
1738
|
"type": "object",
|
|
@@ -1770,24 +1749,109 @@
|
|
|
1770
1749
|
"RuleConfiguration": {
|
|
1771
1750
|
"anyOf": [
|
|
1772
1751
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1773
|
-
{ "$ref": "#/definitions/
|
|
1752
|
+
{ "$ref": "#/definitions/RuleWithNoOptions" }
|
|
1774
1753
|
]
|
|
1775
1754
|
},
|
|
1776
1755
|
"RulePlainConfiguration": {
|
|
1777
1756
|
"type": "string",
|
|
1778
1757
|
"enum": ["warn", "error", "off"]
|
|
1779
1758
|
},
|
|
1780
|
-
"
|
|
1759
|
+
"RuleWithComplexityOptions": {
|
|
1781
1760
|
"type": "object",
|
|
1782
|
-
"required": ["level"],
|
|
1761
|
+
"required": ["level", "options"],
|
|
1783
1762
|
"properties": {
|
|
1784
1763
|
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1785
|
-
"options": {
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1764
|
+
"options": { "$ref": "#/definitions/ComplexityOptions" }
|
|
1765
|
+
},
|
|
1766
|
+
"additionalProperties": false
|
|
1767
|
+
},
|
|
1768
|
+
"RuleWithConsistentArrayTypeOptions": {
|
|
1769
|
+
"type": "object",
|
|
1770
|
+
"required": ["level", "options"],
|
|
1771
|
+
"properties": {
|
|
1772
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1773
|
+
"options": { "$ref": "#/definitions/ConsistentArrayTypeOptions" }
|
|
1774
|
+
},
|
|
1775
|
+
"additionalProperties": false
|
|
1776
|
+
},
|
|
1777
|
+
"RuleWithDeprecatedHooksOptions": {
|
|
1778
|
+
"type": "object",
|
|
1779
|
+
"required": ["level", "options"],
|
|
1780
|
+
"properties": {
|
|
1781
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1782
|
+
"options": { "$ref": "#/definitions/DeprecatedHooksOptions" }
|
|
1783
|
+
},
|
|
1784
|
+
"additionalProperties": false
|
|
1785
|
+
},
|
|
1786
|
+
"RuleWithFilenamingConventionOptions": {
|
|
1787
|
+
"type": "object",
|
|
1788
|
+
"required": ["level", "options"],
|
|
1789
|
+
"properties": {
|
|
1790
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1791
|
+
"options": { "$ref": "#/definitions/FilenamingConventionOptions" }
|
|
1792
|
+
},
|
|
1793
|
+
"additionalProperties": false
|
|
1794
|
+
},
|
|
1795
|
+
"RuleWithHooksOptions": {
|
|
1796
|
+
"type": "object",
|
|
1797
|
+
"required": ["level", "options"],
|
|
1798
|
+
"properties": {
|
|
1799
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1800
|
+
"options": { "$ref": "#/definitions/HooksOptions" }
|
|
1801
|
+
},
|
|
1802
|
+
"additionalProperties": false
|
|
1803
|
+
},
|
|
1804
|
+
"RuleWithNamingConventionOptions": {
|
|
1805
|
+
"type": "object",
|
|
1806
|
+
"required": ["level", "options"],
|
|
1807
|
+
"properties": {
|
|
1808
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1809
|
+
"options": { "$ref": "#/definitions/NamingConventionOptions" }
|
|
1810
|
+
},
|
|
1811
|
+
"additionalProperties": false
|
|
1812
|
+
},
|
|
1813
|
+
"RuleWithNoOptions": {
|
|
1814
|
+
"type": "object",
|
|
1815
|
+
"required": ["level", "options"],
|
|
1816
|
+
"properties": {
|
|
1817
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1818
|
+
"options": { "type": "null" }
|
|
1819
|
+
},
|
|
1820
|
+
"additionalProperties": false
|
|
1821
|
+
},
|
|
1822
|
+
"RuleWithRestrictedGlobalsOptions": {
|
|
1823
|
+
"type": "object",
|
|
1824
|
+
"required": ["level", "options"],
|
|
1825
|
+
"properties": {
|
|
1826
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1827
|
+
"options": { "$ref": "#/definitions/RestrictedGlobalsOptions" }
|
|
1828
|
+
},
|
|
1829
|
+
"additionalProperties": false
|
|
1830
|
+
},
|
|
1831
|
+
"RuleWithRestrictedImportsOptions": {
|
|
1832
|
+
"type": "object",
|
|
1833
|
+
"required": ["level", "options"],
|
|
1834
|
+
"properties": {
|
|
1835
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1836
|
+
"options": { "$ref": "#/definitions/RestrictedImportsOptions" }
|
|
1837
|
+
},
|
|
1838
|
+
"additionalProperties": false
|
|
1839
|
+
},
|
|
1840
|
+
"RuleWithUtilityClassSortingOptions": {
|
|
1841
|
+
"type": "object",
|
|
1842
|
+
"required": ["level", "options"],
|
|
1843
|
+
"properties": {
|
|
1844
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1845
|
+
"options": { "$ref": "#/definitions/UtilityClassSortingOptions" }
|
|
1846
|
+
},
|
|
1847
|
+
"additionalProperties": false
|
|
1848
|
+
},
|
|
1849
|
+
"RuleWithValidAriaRoleOptions": {
|
|
1850
|
+
"type": "object",
|
|
1851
|
+
"required": ["level", "options"],
|
|
1852
|
+
"properties": {
|
|
1853
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1854
|
+
"options": { "$ref": "#/definitions/ValidAriaRoleOptions" }
|
|
1791
1855
|
},
|
|
1792
1856
|
"additionalProperties": false
|
|
1793
1857
|
},
|
|
@@ -1851,13 +1915,47 @@
|
|
|
1851
1915
|
{ "type": "null" }
|
|
1852
1916
|
]
|
|
1853
1917
|
},
|
|
1918
|
+
"noGlobalEval": {
|
|
1919
|
+
"description": "Disallow the use of global eval().",
|
|
1920
|
+
"anyOf": [
|
|
1921
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1922
|
+
{ "type": "null" }
|
|
1923
|
+
]
|
|
1924
|
+
},
|
|
1854
1925
|
"recommended": {
|
|
1855
1926
|
"description": "It enables the recommended rules for this group",
|
|
1856
1927
|
"type": ["boolean", "null"]
|
|
1857
1928
|
}
|
|
1858
|
-
}
|
|
1929
|
+
},
|
|
1930
|
+
"additionalProperties": false
|
|
1859
1931
|
},
|
|
1860
1932
|
"Semicolons": { "type": "string", "enum": ["always", "asNeeded"] },
|
|
1933
|
+
"StableHookResult": {
|
|
1934
|
+
"oneOf": [
|
|
1935
|
+
{
|
|
1936
|
+
"description": "Used to indicate the hook does not have a stable result.",
|
|
1937
|
+
"type": "string",
|
|
1938
|
+
"enum": ["None"]
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
"description": "Used to indicate the identity of the result value is stable.\n\nNote this does not imply internal stability. For instance, the ref objects returned by React's `useRef()` always have a stable identity, but their internal value may be mutable.",
|
|
1942
|
+
"type": "string",
|
|
1943
|
+
"enum": ["Identity"]
|
|
1944
|
+
},
|
|
1945
|
+
{
|
|
1946
|
+
"description": "Used to indicate the hook returns an array and some of its indices have stable identities.\n\nFor example, React's `useState()` hook returns a stable function at index 1.",
|
|
1947
|
+
"type": "object",
|
|
1948
|
+
"required": ["Indices"],
|
|
1949
|
+
"properties": {
|
|
1950
|
+
"Indices": {
|
|
1951
|
+
"type": "array",
|
|
1952
|
+
"items": { "type": "integer", "format": "uint8", "minimum": 0.0 }
|
|
1953
|
+
}
|
|
1954
|
+
},
|
|
1955
|
+
"additionalProperties": false
|
|
1956
|
+
}
|
|
1957
|
+
]
|
|
1958
|
+
},
|
|
1861
1959
|
"StringSet": {
|
|
1862
1960
|
"type": "array",
|
|
1863
1961
|
"items": { "type": "string" },
|
|
@@ -1944,7 +2042,7 @@
|
|
|
1944
2042
|
"noRestrictedGlobals": {
|
|
1945
2043
|
"description": "This rule allows you to specify global variable names that you don’t want to use in your application.",
|
|
1946
2044
|
"anyOf": [
|
|
1947
|
-
{ "$ref": "#/definitions/
|
|
2045
|
+
{ "$ref": "#/definitions/RestrictedGlobalsConfiguration" },
|
|
1948
2046
|
{ "type": "null" }
|
|
1949
2047
|
]
|
|
1950
2048
|
},
|
|
@@ -2001,6 +2099,13 @@
|
|
|
2001
2099
|
{ "type": "null" }
|
|
2002
2100
|
]
|
|
2003
2101
|
},
|
|
2102
|
+
"useConsistentArrayType": {
|
|
2103
|
+
"description": "Require consistently using either T[] or Array<T>",
|
|
2104
|
+
"anyOf": [
|
|
2105
|
+
{ "$ref": "#/definitions/ConsistentArrayTypeConfiguration" },
|
|
2106
|
+
{ "type": "null" }
|
|
2107
|
+
]
|
|
2108
|
+
},
|
|
2004
2109
|
"useConst": {
|
|
2005
2110
|
"description": "Require const declarations for variables that are never reassigned after declared.",
|
|
2006
2111
|
"anyOf": [
|
|
@@ -2029,6 +2134,27 @@
|
|
|
2029
2134
|
{ "type": "null" }
|
|
2030
2135
|
]
|
|
2031
2136
|
},
|
|
2137
|
+
"useExportType": {
|
|
2138
|
+
"description": "Promotes the use of export type for types.",
|
|
2139
|
+
"anyOf": [
|
|
2140
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2141
|
+
{ "type": "null" }
|
|
2142
|
+
]
|
|
2143
|
+
},
|
|
2144
|
+
"useFilenamingConvention": {
|
|
2145
|
+
"description": "Enforce naming conventions for JavaScript and TypeScript filenames.",
|
|
2146
|
+
"anyOf": [
|
|
2147
|
+
{ "$ref": "#/definitions/FilenamingConventionConfiguration" },
|
|
2148
|
+
{ "type": "null" }
|
|
2149
|
+
]
|
|
2150
|
+
},
|
|
2151
|
+
"useForOf": {
|
|
2152
|
+
"description": "This rule recommends a for-of loop when in a for loop, the index used to extract an item from the iterated array.",
|
|
2153
|
+
"anyOf": [
|
|
2154
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2155
|
+
{ "type": "null" }
|
|
2156
|
+
]
|
|
2157
|
+
},
|
|
2032
2158
|
"useFragmentSyntax": {
|
|
2033
2159
|
"description": "This rule enforces the use of <>...</> over <Fragment>...</Fragment>.",
|
|
2034
2160
|
"anyOf": [
|
|
@@ -2036,6 +2162,13 @@
|
|
|
2036
2162
|
{ "type": "null" }
|
|
2037
2163
|
]
|
|
2038
2164
|
},
|
|
2165
|
+
"useImportType": {
|
|
2166
|
+
"description": "Promotes the use of import type for types.",
|
|
2167
|
+
"anyOf": [
|
|
2168
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2169
|
+
{ "type": "null" }
|
|
2170
|
+
]
|
|
2171
|
+
},
|
|
2039
2172
|
"useLiteralEnumMembers": {
|
|
2040
2173
|
"description": "Require all enum members to be literal values.",
|
|
2041
2174
|
"anyOf": [
|
|
@@ -2045,6 +2178,20 @@
|
|
|
2045
2178
|
},
|
|
2046
2179
|
"useNamingConvention": {
|
|
2047
2180
|
"description": "Enforce naming conventions for everything across a codebase.",
|
|
2181
|
+
"anyOf": [
|
|
2182
|
+
{ "$ref": "#/definitions/NamingConventionConfiguration" },
|
|
2183
|
+
{ "type": "null" }
|
|
2184
|
+
]
|
|
2185
|
+
},
|
|
2186
|
+
"useNodejsImportProtocol": {
|
|
2187
|
+
"description": "Enforces using the node: protocol for Node.js builtin modules.",
|
|
2188
|
+
"anyOf": [
|
|
2189
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2190
|
+
{ "type": "null" }
|
|
2191
|
+
]
|
|
2192
|
+
},
|
|
2193
|
+
"useNumberNamespace": {
|
|
2194
|
+
"description": "Use the Number properties instead of global ones.",
|
|
2048
2195
|
"anyOf": [
|
|
2049
2196
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2050
2197
|
{ "type": "null" }
|
|
@@ -2078,6 +2225,13 @@
|
|
|
2078
2225
|
{ "type": "null" }
|
|
2079
2226
|
]
|
|
2080
2227
|
},
|
|
2228
|
+
"useShorthandFunctionType": {
|
|
2229
|
+
"description": "Enforce using function types instead of object type with call signatures.",
|
|
2230
|
+
"anyOf": [
|
|
2231
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2232
|
+
{ "type": "null" }
|
|
2233
|
+
]
|
|
2234
|
+
},
|
|
2081
2235
|
"useSingleCaseStatement": {
|
|
2082
2236
|
"description": "Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.",
|
|
2083
2237
|
"anyOf": [
|
|
@@ -2106,7 +2260,8 @@
|
|
|
2106
2260
|
{ "type": "null" }
|
|
2107
2261
|
]
|
|
2108
2262
|
}
|
|
2109
|
-
}
|
|
2263
|
+
},
|
|
2264
|
+
"additionalProperties": false
|
|
2110
2265
|
},
|
|
2111
2266
|
"Suspicious": {
|
|
2112
2267
|
"description": "A list of rules that belong to this group",
|
|
@@ -2256,6 +2411,13 @@
|
|
|
2256
2411
|
{ "type": "null" }
|
|
2257
2412
|
]
|
|
2258
2413
|
},
|
|
2414
|
+
"noEmptyBlockStatements": {
|
|
2415
|
+
"description": "Disallow empty block statements and static blocks.",
|
|
2416
|
+
"anyOf": [
|
|
2417
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2418
|
+
{ "type": "null" }
|
|
2419
|
+
]
|
|
2420
|
+
},
|
|
2259
2421
|
"noEmptyInterface": {
|
|
2260
2422
|
"description": "Disallow the declaration of empty interfaces.",
|
|
2261
2423
|
"anyOf": [
|
|
@@ -2291,6 +2453,13 @@
|
|
|
2291
2453
|
{ "type": "null" }
|
|
2292
2454
|
]
|
|
2293
2455
|
},
|
|
2456
|
+
"noGlobalAssign": {
|
|
2457
|
+
"description": "Disallow assignments to native objects and read-only global variables.",
|
|
2458
|
+
"anyOf": [
|
|
2459
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2460
|
+
{ "type": "null" }
|
|
2461
|
+
]
|
|
2462
|
+
},
|
|
2294
2463
|
"noGlobalIsFinite": {
|
|
2295
2464
|
"description": "Use Number.isFinite instead of global isFinite.",
|
|
2296
2465
|
"anyOf": [
|
|
@@ -2326,6 +2495,13 @@
|
|
|
2326
2495
|
{ "type": "null" }
|
|
2327
2496
|
]
|
|
2328
2497
|
},
|
|
2498
|
+
"noMisleadingCharacterClass": {
|
|
2499
|
+
"description": "Disallow characters made with multiple code points in character class syntax.",
|
|
2500
|
+
"anyOf": [
|
|
2501
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2502
|
+
{ "type": "null" }
|
|
2503
|
+
]
|
|
2504
|
+
},
|
|
2329
2505
|
"noMisleadingInstantiator": {
|
|
2330
2506
|
"description": "Enforce proper usage of new and constructor.",
|
|
2331
2507
|
"anyOf": [
|
|
@@ -2382,6 +2558,13 @@
|
|
|
2382
2558
|
{ "type": "null" }
|
|
2383
2559
|
]
|
|
2384
2560
|
},
|
|
2561
|
+
"noThenProperty": {
|
|
2562
|
+
"description": "Disallow then property.",
|
|
2563
|
+
"anyOf": [
|
|
2564
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2565
|
+
{ "type": "null" }
|
|
2566
|
+
]
|
|
2567
|
+
},
|
|
2385
2568
|
"noUnsafeDeclarationMerging": {
|
|
2386
2569
|
"description": "Disallow unsafe declaration merging between interfaces and classes.",
|
|
2387
2570
|
"anyOf": [
|
|
@@ -2400,6 +2583,13 @@
|
|
|
2400
2583
|
"description": "It enables the recommended rules for this group",
|
|
2401
2584
|
"type": ["boolean", "null"]
|
|
2402
2585
|
},
|
|
2586
|
+
"useAwait": {
|
|
2587
|
+
"description": "Ensure async functions utilize await.",
|
|
2588
|
+
"anyOf": [
|
|
2589
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2590
|
+
{ "type": "null" }
|
|
2591
|
+
]
|
|
2592
|
+
},
|
|
2403
2593
|
"useDefaultSwitchClauseLast": {
|
|
2404
2594
|
"description": "Enforce default clauses in switch statements to be last",
|
|
2405
2595
|
"anyOf": [
|
|
@@ -2435,7 +2625,8 @@
|
|
|
2435
2625
|
{ "type": "null" }
|
|
2436
2626
|
]
|
|
2437
2627
|
}
|
|
2438
|
-
}
|
|
2628
|
+
},
|
|
2629
|
+
"additionalProperties": false
|
|
2439
2630
|
},
|
|
2440
2631
|
"TrailingComma": {
|
|
2441
2632
|
"description": "Print trailing commas wherever possible in multi-line comma-separated syntactic structures.",
|
|
@@ -2457,6 +2648,26 @@
|
|
|
2457
2648
|
}
|
|
2458
2649
|
]
|
|
2459
2650
|
},
|
|
2651
|
+
"TrailingCommas": {
|
|
2652
|
+
"oneOf": [
|
|
2653
|
+
{
|
|
2654
|
+
"description": "The formatter will remove the trailing comma",
|
|
2655
|
+
"type": "string",
|
|
2656
|
+
"enum": ["none"]
|
|
2657
|
+
},
|
|
2658
|
+
{
|
|
2659
|
+
"description": "The trailing comma is allowed and advised",
|
|
2660
|
+
"type": "string",
|
|
2661
|
+
"enum": ["all"]
|
|
2662
|
+
}
|
|
2663
|
+
]
|
|
2664
|
+
},
|
|
2665
|
+
"UtilityClassSortingConfiguration": {
|
|
2666
|
+
"anyOf": [
|
|
2667
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2668
|
+
{ "$ref": "#/definitions/RuleWithUtilityClassSortingOptions" }
|
|
2669
|
+
]
|
|
2670
|
+
},
|
|
2460
2671
|
"UtilityClassSortingOptions": {
|
|
2461
2672
|
"type": "object",
|
|
2462
2673
|
"properties": {
|
|
@@ -2473,6 +2684,12 @@
|
|
|
2473
2684
|
},
|
|
2474
2685
|
"additionalProperties": false
|
|
2475
2686
|
},
|
|
2687
|
+
"ValidAriaRoleConfiguration": {
|
|
2688
|
+
"anyOf": [
|
|
2689
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2690
|
+
{ "$ref": "#/definitions/RuleWithValidAriaRoleOptions" }
|
|
2691
|
+
]
|
|
2692
|
+
},
|
|
2476
2693
|
"ValidAriaRoleOptions": {
|
|
2477
2694
|
"type": "object",
|
|
2478
2695
|
"required": ["allowInvalidRoles", "ignoreNonDom"],
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/biome","version":"1.
|
|
1
|
+
{"name":"@biomejs/biome","version":"1.6.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 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.6.0","@biomejs/cli-win32-arm64":"1.6.0","@biomejs/cli-darwin-x64":"1.6.0","@biomejs/cli-darwin-arm64":"1.6.0","@biomejs/cli-linux-x64":"1.6.0","@biomejs/cli-linux-arm64":"1.6.0","@biomejs/cli-linux-x64-musl":"1.6.0","@biomejs/cli-linux-arm64-musl":"1.6.0"}}
|