@biomejs/biome 1.5.2 → 1.5.3-nightly.4fa841c
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 +19 -1
- package/README.pt-br.md +1 -1
- package/README.zh-CN.md +1 -1
- package/configuration_schema.json +368 -77
- 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
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
[open-vsx-badge]: https://badgen.net/open-vsx/version/biomejs/biome?label=open-vsx&color=green
|
|
26
26
|
[open-vsx-url]: https://open-vsx.org/extension/biomejs/biome
|
|
27
27
|
|
|
28
|
+
|
|
28
29
|
</div>
|
|
29
30
|
|
|
30
31
|
<div align="center">
|
|
@@ -37,7 +38,7 @@ English | [简体中文](https://github.com/biomejs/biome/blob/main/packages/%40
|
|
|
37
38
|
|
|
38
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)**.
|
|
39
40
|
|
|
40
|
-
**Biome is a [performant linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** for _JavaScript_, _TypeScript_, and _JSX_ that features **[more than 190 rules](https://biomejs.dev/linter/rules/)** from ESLint,
|
|
41
|
+
**Biome is a [performant linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** for _JavaScript_, _TypeScript_, and _JSX_ that features **[more than 190 rules](https://biomejs.dev/linter/rules/)** from ESLint, typescript-eslint, and [other sources](https://github.com/biomejs/biome/discussions/3).
|
|
41
42
|
It **outputs detailed and contextualized diagnostics** that help you to improve your code and become a better programmer!
|
|
42
43
|
|
|
43
44
|
**Biome** is designed from the start to be used [interactively within an editor](https://biomejs.dev/guides/integrate-in-editor/).
|
|
@@ -88,6 +89,23 @@ Read more about our [project philosophy][biome-philosophy].
|
|
|
88
89
|
|
|
89
90
|
**Biome** is [MIT licensed](https://github.com/biomejs/biome/tree/main/LICENSE-MIT) or [Apache 2.0 licensed](https://github.com/biomejs/biome/tree/main/LICENSE-APACHE) and moderated under the [Contributor Covenant Code of Conduct](https://github.com/biomejs/biome/tree/main/CODE_OF_CONDUCT.md).
|
|
90
91
|
|
|
92
|
+
## Funding
|
|
93
|
+
|
|
94
|
+
You can fund the project in different ways
|
|
95
|
+
|
|
96
|
+
### Project sponsorship and funding
|
|
97
|
+
|
|
98
|
+
You can sponsor or fund the project via [Open collective](https://opencollective.com/biome) or [GitHub sponsors](https://github.com/sponsors/biomejs)
|
|
99
|
+
|
|
100
|
+
Biome offers a simple sponsorship program that allows companies to get visibility and recognition among various developers.
|
|
101
|
+
|
|
102
|
+
### Issue funding
|
|
103
|
+
|
|
104
|
+
We use [Polar.sh](https://polar.sh/biomejs) to up-vote and promote specific features that you would like to see and implement. Check our backlog and help us:
|
|
105
|
+
|
|
106
|
+
<a href="https://polar.sh/biomejs"><img src="https://polar.sh/embed/fund-our-backlog.svg?org=biomejs" /></a>
|
|
107
|
+
|
|
108
|
+
|
|
91
109
|
## Sponsors
|
|
92
110
|
|
|
93
111
|
### Gold Sponsors
|
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,9 +294,11 @@
|
|
|
294
294
|
{ "type": "null" }
|
|
295
295
|
]
|
|
296
296
|
}
|
|
297
|
-
}
|
|
297
|
+
},
|
|
298
|
+
"additionalProperties": false
|
|
298
299
|
},
|
|
299
300
|
"ArrowParentheses": { "type": "string", "enum": ["always", "asNeeded"] },
|
|
301
|
+
"AttributePosition": { "type": "string", "enum": ["auto", "multiline"] },
|
|
300
302
|
"Complexity": {
|
|
301
303
|
"description": "A list of rules that belong to this group",
|
|
302
304
|
"type": "object",
|
|
@@ -315,7 +317,7 @@
|
|
|
315
317
|
"noExcessiveCognitiveComplexity": {
|
|
316
318
|
"description": "Disallow functions that exceed a given Cognitive Complexity score.",
|
|
317
319
|
"anyOf": [
|
|
318
|
-
{ "$ref": "#/definitions/
|
|
320
|
+
{ "$ref": "#/definitions/ComplexityConfiguration" },
|
|
319
321
|
{ "type": "null" }
|
|
320
322
|
]
|
|
321
323
|
},
|
|
@@ -484,7 +486,14 @@
|
|
|
484
486
|
{ "type": "null" }
|
|
485
487
|
]
|
|
486
488
|
}
|
|
487
|
-
}
|
|
489
|
+
},
|
|
490
|
+
"additionalProperties": false
|
|
491
|
+
},
|
|
492
|
+
"ComplexityConfiguration": {
|
|
493
|
+
"anyOf": [
|
|
494
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
495
|
+
{ "$ref": "#/definitions/RuleWithComplexityOptions" }
|
|
496
|
+
]
|
|
488
497
|
},
|
|
489
498
|
"ComplexityOptions": {
|
|
490
499
|
"description": "Options for the rule `noExcessiveCognitiveComplexity`.",
|
|
@@ -514,6 +523,12 @@
|
|
|
514
523
|
}
|
|
515
524
|
]
|
|
516
525
|
},
|
|
526
|
+
"ConsistentArrayTypeConfiguration": {
|
|
527
|
+
"anyOf": [
|
|
528
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
529
|
+
{ "$ref": "#/definitions/RuleWithConsistentArrayTypeOptions" }
|
|
530
|
+
]
|
|
531
|
+
},
|
|
517
532
|
"ConsistentArrayTypeOptions": {
|
|
518
533
|
"type": "object",
|
|
519
534
|
"required": ["syntax"],
|
|
@@ -733,14 +748,14 @@
|
|
|
733
748
|
"useExhaustiveDependencies": {
|
|
734
749
|
"description": "Enforce all dependencies are correctly specified in a React hook.",
|
|
735
750
|
"anyOf": [
|
|
736
|
-
{ "$ref": "#/definitions/
|
|
751
|
+
{ "$ref": "#/definitions/HooksConfiguration" },
|
|
737
752
|
{ "type": "null" }
|
|
738
753
|
]
|
|
739
754
|
},
|
|
740
755
|
"useHookAtTopLevel": {
|
|
741
756
|
"description": "Enforce that all React hooks are being called from the Top Level component functions.",
|
|
742
757
|
"anyOf": [
|
|
743
|
-
{ "$ref": "#/definitions/
|
|
758
|
+
{ "$ref": "#/definitions/DeprecatedHooksConfiguration" },
|
|
744
759
|
{ "type": "null" }
|
|
745
760
|
]
|
|
746
761
|
},
|
|
@@ -765,7 +780,8 @@
|
|
|
765
780
|
{ "type": "null" }
|
|
766
781
|
]
|
|
767
782
|
}
|
|
768
|
-
}
|
|
783
|
+
},
|
|
784
|
+
"additionalProperties": false
|
|
769
785
|
},
|
|
770
786
|
"CssConfiguration": {
|
|
771
787
|
"description": "Options applied to CSS files",
|
|
@@ -836,6 +852,12 @@
|
|
|
836
852
|
},
|
|
837
853
|
"additionalProperties": false
|
|
838
854
|
},
|
|
855
|
+
"DeprecatedHooksConfiguration": {
|
|
856
|
+
"anyOf": [
|
|
857
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
858
|
+
{ "$ref": "#/definitions/RuleWithDeprecatedHooksOptions" }
|
|
859
|
+
]
|
|
860
|
+
},
|
|
839
861
|
"DeprecatedHooksOptions": {
|
|
840
862
|
"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.",
|
|
841
863
|
"type": "object",
|
|
@@ -888,6 +910,12 @@
|
|
|
888
910
|
"items": { "$ref": "#/definitions/FilenameCase" },
|
|
889
911
|
"uniqueItems": true
|
|
890
912
|
},
|
|
913
|
+
"FilenamingConventionConfiguration": {
|
|
914
|
+
"anyOf": [
|
|
915
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
916
|
+
{ "$ref": "#/definitions/RuleWithFilenamingConventionOptions" }
|
|
917
|
+
]
|
|
918
|
+
},
|
|
891
919
|
"FilenamingConventionOptions": {
|
|
892
920
|
"description": "Rule's options.",
|
|
893
921
|
"type": "object",
|
|
@@ -896,6 +924,10 @@
|
|
|
896
924
|
"description": "Allowed cases for _TypeScript_ `enum` member names.",
|
|
897
925
|
"allOf": [{ "$ref": "#/definitions/FilenameCases" }]
|
|
898
926
|
},
|
|
927
|
+
"requireAscii": {
|
|
928
|
+
"description": "If `false`, then non-ASCII characters are allowed.",
|
|
929
|
+
"type": "boolean"
|
|
930
|
+
},
|
|
899
931
|
"strictCase": {
|
|
900
932
|
"description": "If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].",
|
|
901
933
|
"type": "boolean"
|
|
@@ -921,7 +953,6 @@
|
|
|
921
953
|
},
|
|
922
954
|
"maxSize": {
|
|
923
955
|
"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",
|
|
924
|
-
"default": null,
|
|
925
956
|
"type": ["integer", "null"],
|
|
926
957
|
"format": "uint64",
|
|
927
958
|
"minimum": 1.0
|
|
@@ -933,10 +964,16 @@
|
|
|
933
964
|
"description": "Generic options applied to all files",
|
|
934
965
|
"type": "object",
|
|
935
966
|
"properties": {
|
|
936
|
-
"
|
|
967
|
+
"attributePosition": {
|
|
968
|
+
"description": "The attribute position style. By default auto.",
|
|
969
|
+
"anyOf": [
|
|
970
|
+
{ "$ref": "#/definitions/AttributePosition" },
|
|
971
|
+
{ "type": "null" }
|
|
972
|
+
]
|
|
973
|
+
},
|
|
974
|
+
"enabled": { "type": ["boolean", "null"] },
|
|
937
975
|
"formatWithErrors": {
|
|
938
976
|
"description": "Stores whether formatting should be allowed to proceed if a given file has syntax errors",
|
|
939
|
-
"default": false,
|
|
940
977
|
"type": ["boolean", "null"]
|
|
941
978
|
},
|
|
942
979
|
"ignore": {
|
|
@@ -949,14 +986,12 @@
|
|
|
949
986
|
},
|
|
950
987
|
"indentSize": {
|
|
951
988
|
"description": "The size of the indentation, 2 by default (deprecated, use `indent-width`)",
|
|
952
|
-
"default": 2,
|
|
953
989
|
"type": ["integer", "null"],
|
|
954
990
|
"format": "uint8",
|
|
955
991
|
"minimum": 0.0
|
|
956
992
|
},
|
|
957
993
|
"indentStyle": {
|
|
958
994
|
"description": "The indent style.",
|
|
959
|
-
"default": "tab",
|
|
960
995
|
"anyOf": [
|
|
961
996
|
{ "$ref": "#/definitions/PlainIndentStyle" },
|
|
962
997
|
{ "type": "null" }
|
|
@@ -964,19 +999,16 @@
|
|
|
964
999
|
},
|
|
965
1000
|
"indentWidth": {
|
|
966
1001
|
"description": "The size of the indentation, 2 by default",
|
|
967
|
-
"default": 2,
|
|
968
1002
|
"type": ["integer", "null"],
|
|
969
1003
|
"format": "uint8",
|
|
970
1004
|
"minimum": 0.0
|
|
971
1005
|
},
|
|
972
1006
|
"lineEnding": {
|
|
973
1007
|
"description": "The type of line ending.",
|
|
974
|
-
"default": "lf",
|
|
975
1008
|
"anyOf": [{ "$ref": "#/definitions/LineEnding" }, { "type": "null" }]
|
|
976
1009
|
},
|
|
977
1010
|
"lineWidth": {
|
|
978
1011
|
"description": "What's the max width of a line. Defaults to 80.",
|
|
979
|
-
"default": 80,
|
|
980
1012
|
"anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
|
|
981
1013
|
}
|
|
982
1014
|
},
|
|
@@ -1002,6 +1034,12 @@
|
|
|
1002
1034
|
},
|
|
1003
1035
|
"additionalProperties": false
|
|
1004
1036
|
},
|
|
1037
|
+
"HooksConfiguration": {
|
|
1038
|
+
"anyOf": [
|
|
1039
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1040
|
+
{ "$ref": "#/definitions/RuleWithHooksOptions" }
|
|
1041
|
+
]
|
|
1042
|
+
},
|
|
1005
1043
|
"HooksOptions": {
|
|
1006
1044
|
"description": "Options for the rule `useExhaustiveDependencies`",
|
|
1007
1045
|
"type": "object",
|
|
@@ -1057,6 +1095,13 @@
|
|
|
1057
1095
|
{ "type": "null" }
|
|
1058
1096
|
]
|
|
1059
1097
|
},
|
|
1098
|
+
"attributePosition": {
|
|
1099
|
+
"description": "The attribute position style in JavaScript code. Defaults to auto.",
|
|
1100
|
+
"anyOf": [
|
|
1101
|
+
{ "$ref": "#/definitions/AttributePosition" },
|
|
1102
|
+
{ "type": "null" }
|
|
1103
|
+
]
|
|
1104
|
+
},
|
|
1060
1105
|
"bracketSameLine": {
|
|
1061
1106
|
"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.",
|
|
1062
1107
|
"type": ["boolean", "null"]
|
|
@@ -1191,6 +1236,13 @@
|
|
|
1191
1236
|
"lineWidth": {
|
|
1192
1237
|
"description": "What's the max width of a line applied to JSON (and its super languages) files. Defaults to 80.",
|
|
1193
1238
|
"anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
|
|
1239
|
+
},
|
|
1240
|
+
"trailingCommas": {
|
|
1241
|
+
"description": "Print trailing commas wherever possible in multi-line comma-separated syntactic structures. Defaults to \"omit\".",
|
|
1242
|
+
"anyOf": [
|
|
1243
|
+
{ "$ref": "#/definitions/TrailingCommas" },
|
|
1244
|
+
{ "type": "null" }
|
|
1245
|
+
]
|
|
1194
1246
|
}
|
|
1195
1247
|
},
|
|
1196
1248
|
"additionalProperties": false
|
|
@@ -1240,7 +1292,6 @@
|
|
|
1240
1292
|
"properties": {
|
|
1241
1293
|
"enabled": {
|
|
1242
1294
|
"description": "if `false`, it disables the feature and the linter won't be executed. `true` by default",
|
|
1243
|
-
"default": true,
|
|
1244
1295
|
"type": ["boolean", "null"]
|
|
1245
1296
|
},
|
|
1246
1297
|
"ignore": {
|
|
@@ -1253,12 +1304,17 @@
|
|
|
1253
1304
|
},
|
|
1254
1305
|
"rules": {
|
|
1255
1306
|
"description": "List of rules",
|
|
1256
|
-
"default": { "recommended": true },
|
|
1257
1307
|
"anyOf": [{ "$ref": "#/definitions/Rules" }, { "type": "null" }]
|
|
1258
1308
|
}
|
|
1259
1309
|
},
|
|
1260
1310
|
"additionalProperties": false
|
|
1261
1311
|
},
|
|
1312
|
+
"NamingConventionConfiguration": {
|
|
1313
|
+
"anyOf": [
|
|
1314
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1315
|
+
{ "$ref": "#/definitions/RuleWithNamingConventionOptions" }
|
|
1316
|
+
]
|
|
1317
|
+
},
|
|
1262
1318
|
"NamingConventionOptions": {
|
|
1263
1319
|
"description": "Rule's options.",
|
|
1264
1320
|
"type": "object",
|
|
@@ -1267,6 +1323,10 @@
|
|
|
1267
1323
|
"description": "Allowed cases for _TypeScript_ `enum` member names.",
|
|
1268
1324
|
"allOf": [{ "$ref": "#/definitions/EnumMemberCase" }]
|
|
1269
1325
|
},
|
|
1326
|
+
"requireAscii": {
|
|
1327
|
+
"description": "If `false`, then non-ASCII characters are allowed.",
|
|
1328
|
+
"type": "boolean"
|
|
1329
|
+
},
|
|
1270
1330
|
"strictCase": {
|
|
1271
1331
|
"description": "If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].",
|
|
1272
1332
|
"type": "boolean"
|
|
@@ -1282,6 +1342,20 @@
|
|
|
1282
1342
|
"description": "It enables ALL rules for this group.",
|
|
1283
1343
|
"type": ["boolean", "null"]
|
|
1284
1344
|
},
|
|
1345
|
+
"noBarrelFile": {
|
|
1346
|
+
"description": "Disallow the use of barrel file.",
|
|
1347
|
+
"anyOf": [
|
|
1348
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1349
|
+
{ "type": "null" }
|
|
1350
|
+
]
|
|
1351
|
+
},
|
|
1352
|
+
"noConsole": {
|
|
1353
|
+
"description": "Disallow the use of console.",
|
|
1354
|
+
"anyOf": [
|
|
1355
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1356
|
+
{ "type": "null" }
|
|
1357
|
+
]
|
|
1358
|
+
},
|
|
1285
1359
|
"noDuplicateJsonKeys": {
|
|
1286
1360
|
"description": "Disallow two keys with the same name inside a JSON object.",
|
|
1287
1361
|
"anyOf": [
|
|
@@ -1289,6 +1363,13 @@
|
|
|
1289
1363
|
{ "type": "null" }
|
|
1290
1364
|
]
|
|
1291
1365
|
},
|
|
1366
|
+
"noDuplicateTestHooks": {
|
|
1367
|
+
"description": "A describe block should not contain duplicate hooks.",
|
|
1368
|
+
"anyOf": [
|
|
1369
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1370
|
+
{ "type": "null" }
|
|
1371
|
+
]
|
|
1372
|
+
},
|
|
1292
1373
|
"noEmptyBlockStatements": {
|
|
1293
1374
|
"description": "Disallow empty block statements and static blocks.",
|
|
1294
1375
|
"anyOf": [
|
|
@@ -1303,6 +1384,27 @@
|
|
|
1303
1384
|
{ "type": "null" }
|
|
1304
1385
|
]
|
|
1305
1386
|
},
|
|
1387
|
+
"noExcessiveNestedTestSuites": {
|
|
1388
|
+
"description": "This rule enforces a maximum depth to nested describe() in test files.",
|
|
1389
|
+
"anyOf": [
|
|
1390
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1391
|
+
{ "type": "null" }
|
|
1392
|
+
]
|
|
1393
|
+
},
|
|
1394
|
+
"noExportsInTest": {
|
|
1395
|
+
"description": "Disallow using export or module.exports in files containing tests",
|
|
1396
|
+
"anyOf": [
|
|
1397
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1398
|
+
{ "type": "null" }
|
|
1399
|
+
]
|
|
1400
|
+
},
|
|
1401
|
+
"noFocusedTests": {
|
|
1402
|
+
"description": "Disallow focused tests.",
|
|
1403
|
+
"anyOf": [
|
|
1404
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1405
|
+
{ "type": "null" }
|
|
1406
|
+
]
|
|
1407
|
+
},
|
|
1306
1408
|
"noGlobalAssign": {
|
|
1307
1409
|
"description": "Disallow assignments to native objects and read-only global variables.",
|
|
1308
1410
|
"anyOf": [
|
|
@@ -1331,6 +1433,13 @@
|
|
|
1331
1433
|
{ "type": "null" }
|
|
1332
1434
|
]
|
|
1333
1435
|
},
|
|
1436
|
+
"noNamespaceImport": {
|
|
1437
|
+
"description": "Disallow the use of namespace imports.",
|
|
1438
|
+
"anyOf": [
|
|
1439
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1440
|
+
{ "type": "null" }
|
|
1441
|
+
]
|
|
1442
|
+
},
|
|
1334
1443
|
"noNodejsModules": {
|
|
1335
1444
|
"description": "Forbid the use of Node.js builtin modules.",
|
|
1336
1445
|
"anyOf": [
|
|
@@ -1338,6 +1447,34 @@
|
|
|
1338
1447
|
{ "type": "null" }
|
|
1339
1448
|
]
|
|
1340
1449
|
},
|
|
1450
|
+
"noReExportAll": {
|
|
1451
|
+
"description": "Avoid re-export all.",
|
|
1452
|
+
"anyOf": [
|
|
1453
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1454
|
+
{ "type": "null" }
|
|
1455
|
+
]
|
|
1456
|
+
},
|
|
1457
|
+
"noRestrictedImports": {
|
|
1458
|
+
"description": "Disallow specified modules when loaded by import or require.",
|
|
1459
|
+
"anyOf": [
|
|
1460
|
+
{ "$ref": "#/definitions/RestrictedImportsConfiguration" },
|
|
1461
|
+
{ "type": "null" }
|
|
1462
|
+
]
|
|
1463
|
+
},
|
|
1464
|
+
"noSemicolonInJsx": {
|
|
1465
|
+
"description": "It detects possible \"wrong\" semicolons inside JSX elements.",
|
|
1466
|
+
"anyOf": [
|
|
1467
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1468
|
+
{ "type": "null" }
|
|
1469
|
+
]
|
|
1470
|
+
},
|
|
1471
|
+
"noSkippedTests": {
|
|
1472
|
+
"description": "Disallow disabled tests.",
|
|
1473
|
+
"anyOf": [
|
|
1474
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1475
|
+
{ "type": "null" }
|
|
1476
|
+
]
|
|
1477
|
+
},
|
|
1341
1478
|
"noThenProperty": {
|
|
1342
1479
|
"description": "Disallow then property.",
|
|
1343
1480
|
"anyOf": [
|
|
@@ -1345,6 +1482,13 @@
|
|
|
1345
1482
|
{ "type": "null" }
|
|
1346
1483
|
]
|
|
1347
1484
|
},
|
|
1485
|
+
"noUndeclaredDependencies": {
|
|
1486
|
+
"description": "Disallow the use of dependencies that aren't specified in the package.json.",
|
|
1487
|
+
"anyOf": [
|
|
1488
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1489
|
+
{ "type": "null" }
|
|
1490
|
+
]
|
|
1491
|
+
},
|
|
1348
1492
|
"noUnusedImports": {
|
|
1349
1493
|
"description": "Disallow unused imports.",
|
|
1350
1494
|
"anyOf": [
|
|
@@ -1387,7 +1531,7 @@
|
|
|
1387
1531
|
"useConsistentArrayType": {
|
|
1388
1532
|
"description": "Require consistently using either T[] or Array<T>",
|
|
1389
1533
|
"anyOf": [
|
|
1390
|
-
{ "$ref": "#/definitions/
|
|
1534
|
+
{ "$ref": "#/definitions/ConsistentArrayTypeConfiguration" },
|
|
1391
1535
|
{ "type": "null" }
|
|
1392
1536
|
]
|
|
1393
1537
|
},
|
|
@@ -1401,7 +1545,7 @@
|
|
|
1401
1545
|
"useFilenamingConvention": {
|
|
1402
1546
|
"description": "Enforce naming conventions for JavaScript and TypeScript filenames.",
|
|
1403
1547
|
"anyOf": [
|
|
1404
|
-
{ "$ref": "#/definitions/
|
|
1548
|
+
{ "$ref": "#/definitions/FilenamingConventionConfiguration" },
|
|
1405
1549
|
{ "type": "null" }
|
|
1406
1550
|
]
|
|
1407
1551
|
},
|
|
@@ -1433,6 +1577,20 @@
|
|
|
1433
1577
|
{ "type": "null" }
|
|
1434
1578
|
]
|
|
1435
1579
|
},
|
|
1580
|
+
"useJsxKeyInIterable": {
|
|
1581
|
+
"description": "Disallow missing key props in iterators/collection literals.",
|
|
1582
|
+
"anyOf": [
|
|
1583
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1584
|
+
{ "type": "null" }
|
|
1585
|
+
]
|
|
1586
|
+
},
|
|
1587
|
+
"useNodeAssertStrict": {
|
|
1588
|
+
"description": "Promotes the usage of node:assert/strict over node:assert.",
|
|
1589
|
+
"anyOf": [
|
|
1590
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1591
|
+
{ "type": "null" }
|
|
1592
|
+
]
|
|
1593
|
+
},
|
|
1436
1594
|
"useNodejsImportProtocol": {
|
|
1437
1595
|
"description": "Enforces using the node: protocol for Node.js builtin modules.",
|
|
1438
1596
|
"anyOf": [
|
|
@@ -1453,15 +1611,22 @@
|
|
|
1453
1611
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
1454
1612
|
{ "type": "null" }
|
|
1455
1613
|
]
|
|
1614
|
+
},
|
|
1615
|
+
"useSortedClasses": {
|
|
1616
|
+
"description": "Enforce the sorting of CSS utility classes.",
|
|
1617
|
+
"anyOf": [
|
|
1618
|
+
{ "$ref": "#/definitions/UtilityClassSortingConfiguration" },
|
|
1619
|
+
{ "type": "null" }
|
|
1620
|
+
]
|
|
1456
1621
|
}
|
|
1457
|
-
}
|
|
1622
|
+
},
|
|
1623
|
+
"additionalProperties": false
|
|
1458
1624
|
},
|
|
1459
1625
|
"OrganizeImports": {
|
|
1460
1626
|
"type": "object",
|
|
1461
1627
|
"properties": {
|
|
1462
1628
|
"enabled": {
|
|
1463
1629
|
"description": "Enables the organization of imports",
|
|
1464
|
-
"default": true,
|
|
1465
1630
|
"type": ["boolean", "null"]
|
|
1466
1631
|
},
|
|
1467
1632
|
"ignore": {
|
|
@@ -1478,6 +1643,14 @@
|
|
|
1478
1643
|
"OverrideFormatterConfiguration": {
|
|
1479
1644
|
"type": "object",
|
|
1480
1645
|
"properties": {
|
|
1646
|
+
"attributePosition": {
|
|
1647
|
+
"description": "The attribute position style.",
|
|
1648
|
+
"default": null,
|
|
1649
|
+
"anyOf": [
|
|
1650
|
+
{ "$ref": "#/definitions/AttributePosition" },
|
|
1651
|
+
{ "type": "null" }
|
|
1652
|
+
]
|
|
1653
|
+
},
|
|
1481
1654
|
"enabled": { "default": null, "type": ["boolean", "null"] },
|
|
1482
1655
|
"formatWithErrors": {
|
|
1483
1656
|
"description": "Stores whether formatting should be allowed to proceed if a given file has syntax errors",
|
|
@@ -1625,7 +1798,8 @@
|
|
|
1625
1798
|
"description": "It enables the recommended rules for this group",
|
|
1626
1799
|
"type": ["boolean", "null"]
|
|
1627
1800
|
}
|
|
1628
|
-
}
|
|
1801
|
+
},
|
|
1802
|
+
"additionalProperties": false
|
|
1629
1803
|
},
|
|
1630
1804
|
"PlainIndentStyle": {
|
|
1631
1805
|
"oneOf": [
|
|
@@ -1633,77 +1807,152 @@
|
|
|
1633
1807
|
{ "description": "Space", "type": "string", "enum": ["space"] }
|
|
1634
1808
|
]
|
|
1635
1809
|
},
|
|
1636
|
-
"
|
|
1810
|
+
"QuoteProperties": { "type": "string", "enum": ["asNeeded", "preserve"] },
|
|
1811
|
+
"QuoteStyle": { "type": "string", "enum": ["double", "single"] },
|
|
1812
|
+
"RestrictedGlobalsConfiguration": {
|
|
1637
1813
|
"anyOf": [
|
|
1638
|
-
{
|
|
1639
|
-
|
|
1640
|
-
"allOf": [{ "$ref": "#/definitions/ComplexityOptions" }]
|
|
1641
|
-
},
|
|
1642
|
-
{
|
|
1643
|
-
"description": "Options for `useConsistentArrayType` rule",
|
|
1644
|
-
"allOf": [{ "$ref": "#/definitions/ConsistentArrayTypeOptions" }]
|
|
1645
|
-
},
|
|
1646
|
-
{
|
|
1647
|
-
"description": "Options for `useFilenamingConvention` rule",
|
|
1648
|
-
"allOf": [{ "$ref": "#/definitions/FilenamingConventionOptions" }]
|
|
1649
|
-
},
|
|
1650
|
-
{
|
|
1651
|
-
"description": "Options for `useExhaustiveDependencies` rule",
|
|
1652
|
-
"allOf": [{ "$ref": "#/definitions/HooksOptions" }]
|
|
1653
|
-
},
|
|
1654
|
-
{
|
|
1655
|
-
"description": "Deprecated options for `useHookAtTopLevel` rule",
|
|
1656
|
-
"allOf": [{ "$ref": "#/definitions/DeprecatedHooksOptions" }]
|
|
1657
|
-
},
|
|
1658
|
-
{
|
|
1659
|
-
"description": "Options for `useNamingConvention` rule",
|
|
1660
|
-
"allOf": [{ "$ref": "#/definitions/NamingConventionOptions" }]
|
|
1661
|
-
},
|
|
1662
|
-
{
|
|
1663
|
-
"description": "Options for `noRestrictedGlobals` rule",
|
|
1664
|
-
"allOf": [{ "$ref": "#/definitions/RestrictedGlobalsOptions" }]
|
|
1665
|
-
},
|
|
1666
|
-
{
|
|
1667
|
-
"description": "Options for `useValidAriaRole` rule",
|
|
1668
|
-
"allOf": [{ "$ref": "#/definitions/ValidAriaRoleOptions" }]
|
|
1669
|
-
}
|
|
1814
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1815
|
+
{ "$ref": "#/definitions/RuleWithRestrictedGlobalsOptions" }
|
|
1670
1816
|
]
|
|
1671
1817
|
},
|
|
1672
|
-
"QuoteProperties": { "type": "string", "enum": ["asNeeded", "preserve"] },
|
|
1673
|
-
"QuoteStyle": { "type": "string", "enum": ["double", "single"] },
|
|
1674
1818
|
"RestrictedGlobalsOptions": {
|
|
1675
1819
|
"description": "Options for the rule `noRestrictedGlobals`.",
|
|
1676
1820
|
"type": "object",
|
|
1821
|
+
"required": ["deniedGlobals"],
|
|
1677
1822
|
"properties": {
|
|
1678
1823
|
"deniedGlobals": {
|
|
1679
1824
|
"description": "A list of names that should trigger the rule",
|
|
1680
|
-
"type":
|
|
1825
|
+
"type": "array",
|
|
1681
1826
|
"items": { "type": "string" }
|
|
1682
1827
|
}
|
|
1683
1828
|
},
|
|
1684
1829
|
"additionalProperties": false
|
|
1685
1830
|
},
|
|
1831
|
+
"RestrictedImportsConfiguration": {
|
|
1832
|
+
"anyOf": [
|
|
1833
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1834
|
+
{ "$ref": "#/definitions/RuleWithRestrictedImportsOptions" }
|
|
1835
|
+
]
|
|
1836
|
+
},
|
|
1837
|
+
"RestrictedImportsOptions": {
|
|
1838
|
+
"description": "Options for the rule `noRestrictedImports`.",
|
|
1839
|
+
"type": "object",
|
|
1840
|
+
"required": ["paths"],
|
|
1841
|
+
"properties": {
|
|
1842
|
+
"paths": {
|
|
1843
|
+
"description": "A list of names that should trigger the rule",
|
|
1844
|
+
"type": "object",
|
|
1845
|
+
"additionalProperties": { "type": "string" }
|
|
1846
|
+
}
|
|
1847
|
+
},
|
|
1848
|
+
"additionalProperties": false
|
|
1849
|
+
},
|
|
1686
1850
|
"RuleConfiguration": {
|
|
1687
1851
|
"anyOf": [
|
|
1688
1852
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1689
|
-
{ "$ref": "#/definitions/
|
|
1853
|
+
{ "$ref": "#/definitions/RuleWithNoOptions" }
|
|
1690
1854
|
]
|
|
1691
1855
|
},
|
|
1692
1856
|
"RulePlainConfiguration": {
|
|
1693
1857
|
"type": "string",
|
|
1694
1858
|
"enum": ["warn", "error", "off"]
|
|
1695
1859
|
},
|
|
1696
|
-
"
|
|
1860
|
+
"RuleWithComplexityOptions": {
|
|
1697
1861
|
"type": "object",
|
|
1698
|
-
"required": ["level"],
|
|
1862
|
+
"required": ["level", "options"],
|
|
1699
1863
|
"properties": {
|
|
1700
1864
|
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1701
|
-
"options": {
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1865
|
+
"options": { "$ref": "#/definitions/ComplexityOptions" }
|
|
1866
|
+
},
|
|
1867
|
+
"additionalProperties": false
|
|
1868
|
+
},
|
|
1869
|
+
"RuleWithConsistentArrayTypeOptions": {
|
|
1870
|
+
"type": "object",
|
|
1871
|
+
"required": ["level", "options"],
|
|
1872
|
+
"properties": {
|
|
1873
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1874
|
+
"options": { "$ref": "#/definitions/ConsistentArrayTypeOptions" }
|
|
1875
|
+
},
|
|
1876
|
+
"additionalProperties": false
|
|
1877
|
+
},
|
|
1878
|
+
"RuleWithDeprecatedHooksOptions": {
|
|
1879
|
+
"type": "object",
|
|
1880
|
+
"required": ["level", "options"],
|
|
1881
|
+
"properties": {
|
|
1882
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1883
|
+
"options": { "$ref": "#/definitions/DeprecatedHooksOptions" }
|
|
1884
|
+
},
|
|
1885
|
+
"additionalProperties": false
|
|
1886
|
+
},
|
|
1887
|
+
"RuleWithFilenamingConventionOptions": {
|
|
1888
|
+
"type": "object",
|
|
1889
|
+
"required": ["level", "options"],
|
|
1890
|
+
"properties": {
|
|
1891
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1892
|
+
"options": { "$ref": "#/definitions/FilenamingConventionOptions" }
|
|
1893
|
+
},
|
|
1894
|
+
"additionalProperties": false
|
|
1895
|
+
},
|
|
1896
|
+
"RuleWithHooksOptions": {
|
|
1897
|
+
"type": "object",
|
|
1898
|
+
"required": ["level", "options"],
|
|
1899
|
+
"properties": {
|
|
1900
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1901
|
+
"options": { "$ref": "#/definitions/HooksOptions" }
|
|
1902
|
+
},
|
|
1903
|
+
"additionalProperties": false
|
|
1904
|
+
},
|
|
1905
|
+
"RuleWithNamingConventionOptions": {
|
|
1906
|
+
"type": "object",
|
|
1907
|
+
"required": ["level", "options"],
|
|
1908
|
+
"properties": {
|
|
1909
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1910
|
+
"options": { "$ref": "#/definitions/NamingConventionOptions" }
|
|
1911
|
+
},
|
|
1912
|
+
"additionalProperties": false
|
|
1913
|
+
},
|
|
1914
|
+
"RuleWithNoOptions": {
|
|
1915
|
+
"type": "object",
|
|
1916
|
+
"required": ["level", "options"],
|
|
1917
|
+
"properties": {
|
|
1918
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1919
|
+
"options": { "type": "null" }
|
|
1920
|
+
},
|
|
1921
|
+
"additionalProperties": false
|
|
1922
|
+
},
|
|
1923
|
+
"RuleWithRestrictedGlobalsOptions": {
|
|
1924
|
+
"type": "object",
|
|
1925
|
+
"required": ["level", "options"],
|
|
1926
|
+
"properties": {
|
|
1927
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1928
|
+
"options": { "$ref": "#/definitions/RestrictedGlobalsOptions" }
|
|
1929
|
+
},
|
|
1930
|
+
"additionalProperties": false
|
|
1931
|
+
},
|
|
1932
|
+
"RuleWithRestrictedImportsOptions": {
|
|
1933
|
+
"type": "object",
|
|
1934
|
+
"required": ["level", "options"],
|
|
1935
|
+
"properties": {
|
|
1936
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1937
|
+
"options": { "$ref": "#/definitions/RestrictedImportsOptions" }
|
|
1938
|
+
},
|
|
1939
|
+
"additionalProperties": false
|
|
1940
|
+
},
|
|
1941
|
+
"RuleWithUtilityClassSortingOptions": {
|
|
1942
|
+
"type": "object",
|
|
1943
|
+
"required": ["level", "options"],
|
|
1944
|
+
"properties": {
|
|
1945
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1946
|
+
"options": { "$ref": "#/definitions/UtilityClassSortingOptions" }
|
|
1947
|
+
},
|
|
1948
|
+
"additionalProperties": false
|
|
1949
|
+
},
|
|
1950
|
+
"RuleWithValidAriaRoleOptions": {
|
|
1951
|
+
"type": "object",
|
|
1952
|
+
"required": ["level", "options"],
|
|
1953
|
+
"properties": {
|
|
1954
|
+
"level": { "$ref": "#/definitions/RulePlainConfiguration" },
|
|
1955
|
+
"options": { "$ref": "#/definitions/ValidAriaRoleOptions" }
|
|
1707
1956
|
},
|
|
1708
1957
|
"additionalProperties": false
|
|
1709
1958
|
},
|
|
@@ -1771,7 +2020,8 @@
|
|
|
1771
2020
|
"description": "It enables the recommended rules for this group",
|
|
1772
2021
|
"type": ["boolean", "null"]
|
|
1773
2022
|
}
|
|
1774
|
-
}
|
|
2023
|
+
},
|
|
2024
|
+
"additionalProperties": false
|
|
1775
2025
|
},
|
|
1776
2026
|
"Semicolons": { "type": "string", "enum": ["always", "asNeeded"] },
|
|
1777
2027
|
"StringSet": {
|
|
@@ -1860,7 +2110,7 @@
|
|
|
1860
2110
|
"noRestrictedGlobals": {
|
|
1861
2111
|
"description": "This rule allows you to specify global variable names that you don’t want to use in your application.",
|
|
1862
2112
|
"anyOf": [
|
|
1863
|
-
{ "$ref": "#/definitions/
|
|
2113
|
+
{ "$ref": "#/definitions/RestrictedGlobalsConfiguration" },
|
|
1864
2114
|
{ "type": "null" }
|
|
1865
2115
|
]
|
|
1866
2116
|
},
|
|
@@ -1962,7 +2212,7 @@
|
|
|
1962
2212
|
"useNamingConvention": {
|
|
1963
2213
|
"description": "Enforce naming conventions for everything across a codebase.",
|
|
1964
2214
|
"anyOf": [
|
|
1965
|
-
{ "$ref": "#/definitions/
|
|
2215
|
+
{ "$ref": "#/definitions/NamingConventionConfiguration" },
|
|
1966
2216
|
{ "type": "null" }
|
|
1967
2217
|
]
|
|
1968
2218
|
},
|
|
@@ -2022,7 +2272,8 @@
|
|
|
2022
2272
|
{ "type": "null" }
|
|
2023
2273
|
]
|
|
2024
2274
|
}
|
|
2025
|
-
}
|
|
2275
|
+
},
|
|
2276
|
+
"additionalProperties": false
|
|
2026
2277
|
},
|
|
2027
2278
|
"Suspicious": {
|
|
2028
2279
|
"description": "A list of rules that belong to this group",
|
|
@@ -2033,7 +2284,7 @@
|
|
|
2033
2284
|
"type": ["boolean", "null"]
|
|
2034
2285
|
},
|
|
2035
2286
|
"noApproximativeNumericConstant": {
|
|
2036
|
-
"description": "
|
|
2287
|
+
"description": "Use standard constants instead of approximated literals.",
|
|
2037
2288
|
"anyOf": [
|
|
2038
2289
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2039
2290
|
{ "type": "null" }
|
|
@@ -2351,7 +2602,8 @@
|
|
|
2351
2602
|
{ "type": "null" }
|
|
2352
2603
|
]
|
|
2353
2604
|
}
|
|
2354
|
-
}
|
|
2605
|
+
},
|
|
2606
|
+
"additionalProperties": false
|
|
2355
2607
|
},
|
|
2356
2608
|
"TrailingComma": {
|
|
2357
2609
|
"description": "Print trailing commas wherever possible in multi-line comma-separated syntactic structures.",
|
|
@@ -2373,14 +2625,53 @@
|
|
|
2373
2625
|
}
|
|
2374
2626
|
]
|
|
2375
2627
|
},
|
|
2376
|
-
"
|
|
2628
|
+
"TrailingCommas": {
|
|
2629
|
+
"oneOf": [
|
|
2630
|
+
{
|
|
2631
|
+
"description": "The formatter will remove the trailing comma",
|
|
2632
|
+
"type": "string",
|
|
2633
|
+
"enum": ["none"]
|
|
2634
|
+
},
|
|
2635
|
+
{
|
|
2636
|
+
"description": "The trailing comma is allowed and advised",
|
|
2637
|
+
"type": "string",
|
|
2638
|
+
"enum": ["all"]
|
|
2639
|
+
}
|
|
2640
|
+
]
|
|
2641
|
+
},
|
|
2642
|
+
"UtilityClassSortingConfiguration": {
|
|
2643
|
+
"anyOf": [
|
|
2644
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2645
|
+
{ "$ref": "#/definitions/RuleWithUtilityClassSortingOptions" }
|
|
2646
|
+
]
|
|
2647
|
+
},
|
|
2648
|
+
"UtilityClassSortingOptions": {
|
|
2377
2649
|
"type": "object",
|
|
2378
|
-
"required": ["allowedInvalidRoles", "ignoreNonDom"],
|
|
2379
2650
|
"properties": {
|
|
2380
|
-
"
|
|
2381
|
-
"
|
|
2651
|
+
"attributes": {
|
|
2652
|
+
"description": "Additional attributes that will be sorted.",
|
|
2653
|
+
"type": ["array", "null"],
|
|
2382
2654
|
"items": { "type": "string" }
|
|
2383
2655
|
},
|
|
2656
|
+
"functions": {
|
|
2657
|
+
"description": "Names of the functions or tagged templates that will be sorted.",
|
|
2658
|
+
"type": ["array", "null"],
|
|
2659
|
+
"items": { "type": "string" }
|
|
2660
|
+
}
|
|
2661
|
+
},
|
|
2662
|
+
"additionalProperties": false
|
|
2663
|
+
},
|
|
2664
|
+
"ValidAriaRoleConfiguration": {
|
|
2665
|
+
"anyOf": [
|
|
2666
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2667
|
+
{ "$ref": "#/definitions/RuleWithValidAriaRoleOptions" }
|
|
2668
|
+
]
|
|
2669
|
+
},
|
|
2670
|
+
"ValidAriaRoleOptions": {
|
|
2671
|
+
"type": "object",
|
|
2672
|
+
"required": ["allowInvalidRoles", "ignoreNonDom"],
|
|
2673
|
+
"properties": {
|
|
2674
|
+
"allowInvalidRoles": { "type": "array", "items": { "type": "string" } },
|
|
2384
2675
|
"ignoreNonDom": { "type": "boolean" }
|
|
2385
2676
|
},
|
|
2386
2677
|
"additionalProperties": false
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@biomejs/biome","version":"1.5.
|
|
1
|
+
{"name":"@biomejs/biome","version":"1.5.3-nightly.4fa841c","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.5.3-nightly.4fa841c","@biomejs/cli-win32-arm64":"1.5.3-nightly.4fa841c","@biomejs/cli-darwin-x64":"1.5.3-nightly.4fa841c","@biomejs/cli-darwin-arm64":"1.5.3-nightly.4fa841c","@biomejs/cli-linux-x64":"1.5.3-nightly.4fa841c","@biomejs/cli-linux-arm64":"1.5.3-nightly.4fa841c","@biomejs/cli-linux-x64-musl":"1.5.3-nightly.4fa841c","@biomejs/cli-linux-arm64-musl":"1.5.3-nightly.4fa841c"}}
|