@biomejs/biome 2.0.0-beta.5 → 2.0.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.fr.md +1 -1
- package/README.hi.md +1 -1
- package/README.ja.md +1 -1
- package/README.kr.md +1 -1
- package/README.md +10 -11
- package/README.pt-BR.md +1 -1
- package/README.ru.md +1 -1
- package/README.uk.md +1 -1
- package/README.zh-CN.md +1 -1
- package/README.zh-TW.md +1 -1
- package/configuration_schema.json +130 -21
- package/package.json +9 -9
package/README.fr.md
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
**Biome est un [outil de linting performant](https://github.com/biomejs/biome/tree/main/benchmark#linting)** pour _JavaScript_, _TypeScript_, _JSX_, _CSS_ et _GraphQL_ qui comprend **[plus de 270 règles](https://biomejs.dev/fr/linter/rules/)** d’ESLint, de typescript-eslint, et [d’autres sources](https://github.com/biomejs/biome/discussions/3).
|
|
43
43
|
Il **fournit des diagnostics détaillés et contextualisés** qui vous aident à améliorer votre code et à devenir un meilleur programmeur !
|
|
44
44
|
|
|
45
|
-
**Biome** est conçu dès le départ pour être utilisé [dans un éditeur de manière interactive](https://biomejs.dev/fr/guides/
|
|
45
|
+
**Biome** est conçu dès le départ pour être utilisé [dans un éditeur de manière interactive](https://biomejs.dev/fr/guides/editors/first-party-extensions/).
|
|
46
46
|
Il peut formater et analyser du code malformé pendant que vous l’écrivez.
|
|
47
47
|
|
|
48
48
|
### Installation
|
package/README.hi.md
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
**Biome *JavaScript*, *TypeScript* और *JSX* के लिए एक [प्रदर्शनकारी लिंटर](https://github.com/biomejs/biome/tree/main/benchmark#linting)[^8]** है जिसमें ESLint, typescript-eslint और [अन्य स्रोतों](https://github.com/biomejs/biome/discussions/3) से **[२७० से अधिक नियम](https://biomejs.dev/linter/rules/)** शामिल हैं। यह **विस्तृत[^9] और संदर्भिकृत[^10] निदान[^11]** आउटपुट[^12] करता है जो आपको अपना कोड[^13] बेहतर बनाने और एक बेहतर प्रोग्रामर[^14] बनने में मदद करता है!
|
|
43
43
|
|
|
44
|
-
**Biome** को शुरू से ही [संपादक](https://biomejs.dev/guides/integrate-in-editor/)[^15] [के भीतर अंतरक्रियात्मक](https://biomejs.dev/guides/integrate-in-editor/)[^16] [रूप से](https://biomejs.dev/guides/
|
|
44
|
+
**Biome** को शुरू से ही [संपादक](https://biomejs.dev/guides/integrate-in-editor/)[^15] [के भीतर अंतरक्रियात्मक](https://biomejs.dev/guides/integrate-in-editor/)[^16] [रूप से](https://biomejs.dev/guides/editors/first-party-extensions/) उपयोग करने के लिए डिज़ाइन[^17] किया गया है। यह आपके द्वारा लिखे जा रहे विकृत[^18] कोड[^13] को स्वरूप[^5] और लिंट[^8] कर सकता है।
|
|
45
45
|
|
|
46
46
|
### स्थापना[^19]
|
|
47
47
|
|
package/README.ja.md
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
**Biome は _JavaScript_, _TypeScript_, _JSX_ のための[高性能なLinter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** であり、ESLint, typescript-eslint, [その他のソース](https://github.com/biomejs/biome/discussions/3)から **[270以上のルール](https://biomejs.dev/linter/rules/)**を提供しています。Biome は**詳細で文脈に沿った結果を出力**するため、コードを改善し、より良いプログラマになるための手助けをします!
|
|
43
43
|
|
|
44
|
-
**Biome** は最初から[**エディタ内で対話的に**](https://biomejs.dev/ja/guides/
|
|
44
|
+
**Biome** は最初から[**エディタ内で対話的に**](https://biomejs.dev/ja/guides/editors/first-party-extensions/)使用できるように設計されています。
|
|
45
45
|
あなたがコードを書いているときに、形の崩れたコードを format と lint することができます。
|
|
46
46
|
|
|
47
47
|
### インストール
|
package/README.kr.md
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
**Biome**은 _JavaScript_, _TypeScript_, _JSX_, _CSS_ 및 *GraphQL*을 위한 **[고성능 린터](https://github.com/biomejs/biome/tree/main/benchmark#linting)로**, ESLint, typescript-eslint 등 [다양한 소스](https://github.com/biomejs/biome/discussions/3)에서 가져온 **[270개 이상의 규칙](https://biomejs.dev/linter/rules/)을** 제공합니다. **맥락을 고려한 상세한 진단 정보**를 제공하여 코드 품질 향상과 개발 실력 향상에 도움을 줍니다!
|
|
43
43
|
|
|
44
|
-
**Biome**은 처음부터 [에디터와 상호작용](https://biomejs.dev/guides/
|
|
44
|
+
**Biome**은 처음부터 [에디터와 상호작용](https://biomejs.dev/guides/editors/first-party-extensions/)하도록 설계되었습니다. 코드를 작성하는 동안에도 포매팅과 린팅을 수행할 수 있습니다.
|
|
45
45
|
|
|
46
46
|
### 설치
|
|
47
47
|
|
package/README.md
CHANGED
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
[vscode-url]: https://marketplace.visualstudio.com/items?itemName=biomejs.biome
|
|
25
25
|
[open-vsx-badge]: https://badgen.net/open-vsx/version/biomejs/biome?label=open-vsx&color=60a5fa
|
|
26
26
|
[open-vsx-url]: https://open-vsx.org/extension/biomejs/biome
|
|
27
|
-
[polar-badge]: https://polar.sh/embed/seeks-funding-shield.svg?org=biomejs
|
|
28
27
|
|
|
29
28
|
<!-- Insert new entries lexicographically by language code.
|
|
30
29
|
For example given below is the same order as these files appear on page:
|
|
@@ -39,10 +38,10 @@
|
|
|
39
38
|
|
|
40
39
|
**Biome is a [fast formatter](./benchmark#formatting)** for _JavaScript_, _TypeScript_, _JSX_, _JSON_, _CSS_ and _GraphQL_ that scores **[97% compatibility with _Prettier_](https://console.algora.io/challenges/prettier)**.
|
|
41
40
|
|
|
42
|
-
**Biome is a [performant linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** for _JavaScript_, _TypeScript_, _JSX_, _CSS_ and _GraphQL_ that features **[more than
|
|
41
|
+
**Biome is a [performant linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** for _JavaScript_, _TypeScript_, _JSX_, _JSON_, _CSS_, and _GraphQL_ that features **[more than 300 rules](https://biomejs.dev/linter/rules/)** from ESLint, typescript-eslint, and [other sources](https://github.com/biomejs/biome/discussions/3).
|
|
43
42
|
It **outputs detailed and contextualized diagnostics** that help you to improve your code and become a better programmer!
|
|
44
43
|
|
|
45
|
-
**Biome** is designed from the start to be used [interactively within an editor](https://biomejs.dev/guides/
|
|
44
|
+
**Biome** is designed from the start to be used [interactively within an editor](https://biomejs.dev/guides/editors/first-party-extensions/).
|
|
46
45
|
It can format and lint malformed code as you are writing it.
|
|
47
46
|
|
|
48
47
|
### Installation
|
|
@@ -55,16 +54,16 @@ npm install --save-dev --save-exact @biomejs/biome
|
|
|
55
54
|
|
|
56
55
|
```shell
|
|
57
56
|
# format files
|
|
58
|
-
npx @biomejs/biome format --write
|
|
57
|
+
npx @biomejs/biome format --write
|
|
59
58
|
|
|
60
59
|
# lint files and apply the safe fixes
|
|
61
|
-
npx @biomejs/biome lint --write
|
|
60
|
+
npx @biomejs/biome lint --write
|
|
62
61
|
|
|
63
62
|
# run format, lint, etc. and apply the safe fixes
|
|
64
|
-
npx @biomejs/biome check --write
|
|
63
|
+
npx @biomejs/biome check --write
|
|
65
64
|
|
|
66
65
|
# check all files against format, lint, etc. in CI environments
|
|
67
|
-
npx @biomejs/biome ci
|
|
66
|
+
npx @biomejs/biome ci
|
|
68
67
|
```
|
|
69
68
|
|
|
70
69
|
If you want to give Biome a run without installing it, use the [online playground](https://biomejs.dev/playground/), compiled to WebAssembly.
|
|
@@ -84,7 +83,9 @@ or directly head to the [Getting Started guide][getting-started] to start using
|
|
|
84
83
|
|
|
85
84
|
**Biome** has first-class LSP support, with a sophisticated parser that represents the source text in full fidelity and top-notch error recovery.
|
|
86
85
|
|
|
87
|
-
**Biome**
|
|
86
|
+
**Biome** wants to offer a high-quality *Developer Experience*, with descriptive diagnostics and great performance.
|
|
87
|
+
|
|
88
|
+
**Biome** unifies functionalities that have previously been separate tools. Building upon a shared base allows us to provide a cohesive experience for processing code, displaying errors, parallelize work, caching, and configuration.
|
|
88
89
|
|
|
89
90
|
Read more about our [project philosophy][biome-philosophy].
|
|
90
91
|
|
|
@@ -100,9 +101,7 @@ You can sponsor or fund the project via [Open collective](https://opencollective
|
|
|
100
101
|
|
|
101
102
|
Biome offers a simple sponsorship program that allows companies to get visibility and recognition among various developers.
|
|
102
103
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
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:
|
|
104
|
+
Biome offers [enterprise support](https://biomejs.dev/enterprise), where Core Contributors can be employed to work on company-focused projects.
|
|
106
105
|
|
|
107
106
|
## Sponsors
|
|
108
107
|
|
package/README.pt-BR.md
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
**Biome é um [linter eficiente](https://github.com/biomejs/biome/tree/main/benchmark#linting)** para _JavaScript_, _TypeScript_, e _JSX_ que possui **[mais de 270 regras](https://biomejs.dev/linter/rules/)** do ESLint, typescript-eslint, e de [outras fontes](https://github.com/biomejs/biome/discussions/3).
|
|
43
43
|
Ele **fornece diagnósticos detalhados e contextualizados** que ajudam você a melhorar seu código e se tornar um programador melhor!
|
|
44
44
|
|
|
45
|
-
**Biome** é projetado desde o início para ser usado [interativamente dentro de um editor](https://biomejs.dev/guides/
|
|
45
|
+
**Biome** é projetado desde o início para ser usado [interativamente dentro de um editor](https://biomejs.dev/guides/editors/first-party-extensions/).
|
|
46
46
|
Isso permite formatar e lintar códigos malformados enquanto você programa.
|
|
47
47
|
|
|
48
48
|
### Instalação
|
package/README.ru.md
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
**Biome - это [высокопроизводительный линтер](https://github.com/biomejs/biome/tree/main/benchmark#linting)** для _JavaScript_, _TypeScript_, _JSX_, _CSS_ и _GraphQL_, содержащий **[более 270 правил](https://biomejs.dev/linter/rules/)** из ESLint, typescript-eslint, и [других источников](https://github.com/biomejs/biome/discussions/3).
|
|
43
43
|
Он **выводит подробную диагностику с контекстной информацией**, которая помогает вам улучшить ваш код и стать более лучшим программистом!
|
|
44
44
|
|
|
45
|
-
**Biome** изначально разработан для [интерактивной работы в редакторе](https://biomejs.dev/guides/
|
|
45
|
+
**Biome** изначально разработан для [интерактивной работы в редакторе](https://biomejs.dev/guides/editors/first-party-extensions/).
|
|
46
46
|
Он может форматировать и исправлять некорректный код по мере его написания.
|
|
47
47
|
|
|
48
48
|
### Установка
|
package/README.uk.md
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
**Biome - це [високопродуктивний лінтер](https://github.com/biomejs/biome/tree/main/benchmark#linting)** для _JavaScript_, _TypeScript_, _JSX_, _CSS_ та _GraphQL_, який містить **[понад 270 правил](https://biomejs.dev/linter/rules/)** з ESLint, typescript-eslint та [інших джерел](https://github.com/biomejs/biome/discussions/3).
|
|
43
43
|
Він **виводить детальні та контекстуалізовані діагностичні дані**, які допомагають вам покращити ваш код та стати кращим програмістом!
|
|
44
44
|
|
|
45
|
-
**Biome** з самого початку розроблений для [інтерактивного використання в редакторі](https://biomejs.dev/guides/
|
|
45
|
+
**Biome** з самого початку розроблений для [інтерактивного використання в редакторі](https://biomejs.dev/guides/editors/first-party-extensions/). Він може форматувати та лінтити некоректний код під час його написання.
|
|
46
46
|
|
|
47
47
|
### Встановлення
|
|
48
48
|
|
package/README.zh-CN.md
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
**Biome 是一个[高性能的 Linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)**,适用于 _JavaScript_、_TypeScript_、_JSX_ 等,包含了来自 ESLint、typescript-eslint 和[其他来源](https://github.com/biomejs/biome/discussions/3)的 **[270 余项规则](https://biomejs.dev/zh-cn/linter/rules/)**。它**输出详细且有上下文诊断信息**,能帮助你优化代码,成为一名更好的程序员!
|
|
43
43
|
|
|
44
|
-
**Biome** 从一开始就设计为[在编辑器中交互式使用](https://biomejs.dev/zh-cn/guides/
|
|
44
|
+
**Biome** 从一开始就设计为[在编辑器中交互式使用](https://biomejs.dev/zh-cn/guides/editors/first-party-extensions/)。它可以在你编写代码时格式化并检查出不规范的代码。
|
|
45
45
|
|
|
46
46
|
### 安装
|
|
47
47
|
|
package/README.zh-TW.md
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
**Biome 是一個 [高效能的語法檢查工具](https://github.com/biomejs/biome/tree/main/benchmark#linting)**,支援 _JavaScript_、_TypeScript_、_JSX_、_CSS_ 和 _GraphQL_,擁有來自 ESLint、typescript-eslint 和 [其他來源](https://github.com/biomejs/biome/discussions/3)的 **超過 270 條規則**。
|
|
43
43
|
它 **輸出詳細且具上下文的診斷資訊**,幫助你改進程式碼並成為更好的程式設計師!
|
|
44
44
|
|
|
45
|
-
**Biome** 從一開始就設計為可在 [編輯器中互動使用](https://biomejs.dev/guides/
|
|
45
|
+
**Biome** 從一開始就設計為可在 [編輯器中互動使用](https://biomejs.dev/guides/editors/first-party-extensions/)。
|
|
46
46
|
它可以在你編寫程式碼時格式化和檢查錯誤的程式碼。
|
|
47
47
|
|
|
48
48
|
### 安裝
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"extends": {
|
|
26
26
|
"description": "A list of paths to other JSON files, used to extends the current configuration.",
|
|
27
|
-
"
|
|
28
|
-
"items": { "type": "string" }
|
|
27
|
+
"anyOf": [{ "$ref": "#/definitions/Extends" }, { "type": "null" }]
|
|
29
28
|
},
|
|
30
29
|
"files": {
|
|
31
30
|
"description": "The configuration of the filesystem",
|
|
@@ -420,6 +419,13 @@
|
|
|
420
419
|
{ "type": "null" }
|
|
421
420
|
]
|
|
422
421
|
},
|
|
422
|
+
"noArguments": {
|
|
423
|
+
"description": "Disallow the use of arguments.",
|
|
424
|
+
"anyOf": [
|
|
425
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
426
|
+
{ "type": "null" }
|
|
427
|
+
]
|
|
428
|
+
},
|
|
423
429
|
"noBannedTypes": {
|
|
424
430
|
"description": "Disallow primitive type aliases and misleading types.",
|
|
425
431
|
"anyOf": [
|
|
@@ -427,6 +433,13 @@
|
|
|
427
433
|
{ "type": "null" }
|
|
428
434
|
]
|
|
429
435
|
},
|
|
436
|
+
"noCommaOperator": {
|
|
437
|
+
"description": "Disallow comma operator.",
|
|
438
|
+
"anyOf": [
|
|
439
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
440
|
+
{ "type": "null" }
|
|
441
|
+
]
|
|
442
|
+
},
|
|
430
443
|
"noEmptyTypeParameters": {
|
|
431
444
|
"description": "Disallow empty type parameters in type aliases and interfaces.",
|
|
432
445
|
"anyOf": [
|
|
@@ -1362,6 +1375,12 @@
|
|
|
1362
1375
|
}
|
|
1363
1376
|
]
|
|
1364
1377
|
},
|
|
1378
|
+
"Extends": {
|
|
1379
|
+
"anyOf": [
|
|
1380
|
+
{ "type": "array", "items": { "type": "string" } },
|
|
1381
|
+
{ "type": "string" }
|
|
1382
|
+
]
|
|
1383
|
+
},
|
|
1365
1384
|
"FilenameCase": {
|
|
1366
1385
|
"description": "Supported cases for file names.",
|
|
1367
1386
|
"oneOf": [
|
|
@@ -1426,6 +1445,11 @@
|
|
|
1426
1445
|
"description": "The configuration of the filesystem",
|
|
1427
1446
|
"type": "object",
|
|
1428
1447
|
"properties": {
|
|
1448
|
+
"experimentalScannerIgnores": {
|
|
1449
|
+
"description": "Set of file and folder names that should be unconditionally ignored by Biome's scanner.\n\nBiome maintains an internal list of default ignore entries, which is based on user feedback and which may change in any release. This setting allows overriding this internal list completely.\n\nThis is considered an advanced feature that users _should_ not need to tweak themselves, but they can as a last resort. This setting can only be configured in root configurations, and is ignored in nested configs.\n\nEntries must be file or folder *names*. Specific paths and globs are not supported.\n\nExamples where this may be useful:\n\n```jsonc { \"files\": { \"experimentalScannerIgnores\": [ // You almost certainly don't want to scan your `.git` // folder, which is why it's already ignored by default: \".git\",\n\n// But the scanner does scan `node_modules` by default. If // you *really* don't want this, you can ignore it like // this: \"node_modules\",\n\n// But it's probably better to ignore a specific dependency. // For instance, one that happens to be particularly slow to // scan: \"RedisCommander.d.ts\", ], } } ```\n\nPlease be aware that rules relying on the module graph or type inference information may be negatively affected if dependencies of your project aren't (fully) scanned.",
|
|
1450
|
+
"type": ["array", "null"],
|
|
1451
|
+
"items": { "type": "string" }
|
|
1452
|
+
},
|
|
1429
1453
|
"ignoreUnknown": {
|
|
1430
1454
|
"description": "Tells Biome to not emit diagnostics when handling files that doesn't know",
|
|
1431
1455
|
"anyOf": [{ "$ref": "#/definitions/Bool" }, { "type": "null" }]
|
|
@@ -2262,7 +2286,7 @@
|
|
|
2262
2286
|
"enum": ["namespaceLike"]
|
|
2263
2287
|
},
|
|
2264
2288
|
{
|
|
2265
|
-
"description": "TypeScript
|
|
2289
|
+
"description": "TypeScript namespaces",
|
|
2266
2290
|
"type": "string",
|
|
2267
2291
|
"enum": ["namespace"]
|
|
2268
2292
|
},
|
|
@@ -2557,6 +2581,24 @@
|
|
|
2557
2581
|
},
|
|
2558
2582
|
"additionalProperties": false
|
|
2559
2583
|
},
|
|
2584
|
+
"NoParameterAssignConfiguration": {
|
|
2585
|
+
"anyOf": [
|
|
2586
|
+
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
2587
|
+
{ "$ref": "#/definitions/RuleWithNoParameterAssignOptions" }
|
|
2588
|
+
]
|
|
2589
|
+
},
|
|
2590
|
+
"NoParameterAssignOptions": {
|
|
2591
|
+
"description": "Options for the rule `NoParameterAssign`",
|
|
2592
|
+
"type": "object",
|
|
2593
|
+
"properties": {
|
|
2594
|
+
"propertyAssignment": {
|
|
2595
|
+
"description": "Whether to report an error when a dependency is listed in the dependencies array but isn't used. Defaults to `allow`.",
|
|
2596
|
+
"default": "allow",
|
|
2597
|
+
"allOf": [{ "$ref": "#/definitions/PropertyAssignmentMode" }]
|
|
2598
|
+
}
|
|
2599
|
+
},
|
|
2600
|
+
"additionalProperties": false
|
|
2601
|
+
},
|
|
2560
2602
|
"NoPrivateImportsConfiguration": {
|
|
2561
2603
|
"anyOf": [
|
|
2562
2604
|
{ "$ref": "#/definitions/RulePlainConfiguration" },
|
|
@@ -2666,8 +2708,8 @@
|
|
|
2666
2708
|
"type": "object",
|
|
2667
2709
|
"properties": {
|
|
2668
2710
|
"ignoreRestSiblings": {
|
|
2669
|
-
"description": "Whether to ignore unused variables from an object destructuring with a spread
|
|
2670
|
-
"default":
|
|
2711
|
+
"description": "Whether to ignore unused variables from an object destructuring with a spread.",
|
|
2712
|
+
"default": true,
|
|
2671
2713
|
"type": "boolean"
|
|
2672
2714
|
}
|
|
2673
2715
|
},
|
|
@@ -2758,6 +2800,13 @@
|
|
|
2758
2800
|
{ "type": "null" }
|
|
2759
2801
|
]
|
|
2760
2802
|
},
|
|
2803
|
+
"noReactPropAssign": {
|
|
2804
|
+
"description": "Disallow assigning to React component props.",
|
|
2805
|
+
"anyOf": [
|
|
2806
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2807
|
+
{ "type": "null" }
|
|
2808
|
+
]
|
|
2809
|
+
},
|
|
2761
2810
|
"noRestrictedElements": {
|
|
2762
2811
|
"description": "Disallow the use of configured elements.",
|
|
2763
2812
|
"anyOf": [
|
|
@@ -2848,6 +2897,13 @@
|
|
|
2848
2897
|
{ "type": "null" }
|
|
2849
2898
|
]
|
|
2850
2899
|
},
|
|
2900
|
+
"useConsistentResponse": {
|
|
2901
|
+
"description": "Use static Response methods instead of new Response() constructor when possible.",
|
|
2902
|
+
"anyOf": [
|
|
2903
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2904
|
+
{ "type": "null" }
|
|
2905
|
+
]
|
|
2906
|
+
},
|
|
2851
2907
|
"useExhaustiveSwitchCases": {
|
|
2852
2908
|
"description": "Require switch-case statements to be exhaustive.",
|
|
2853
2909
|
"anyOf": [
|
|
@@ -2883,6 +2939,13 @@
|
|
|
2883
2939
|
{ "type": "null" }
|
|
2884
2940
|
]
|
|
2885
2941
|
},
|
|
2942
|
+
"useIndexOf": {
|
|
2943
|
+
"description": "Prefer Array#{indexOf,lastIndexOf}() over Array#{findIndex,findLastIndex}() when looking for the index of an item.",
|
|
2944
|
+
"anyOf": [
|
|
2945
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2946
|
+
{ "type": "null" }
|
|
2947
|
+
]
|
|
2948
|
+
},
|
|
2886
2949
|
"useIterableCallbackReturn": {
|
|
2887
2950
|
"description": "Enforce consistent return values in iterable callbacks.",
|
|
2888
2951
|
"anyOf": [
|
|
@@ -2890,6 +2953,13 @@
|
|
|
2890
2953
|
{ "type": "null" }
|
|
2891
2954
|
]
|
|
2892
2955
|
},
|
|
2956
|
+
"useJsonImportAttribute": {
|
|
2957
|
+
"description": "Enforces the use of with { type: \"json\" } for JSON module imports.",
|
|
2958
|
+
"anyOf": [
|
|
2959
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2960
|
+
{ "type": "null" }
|
|
2961
|
+
]
|
|
2962
|
+
},
|
|
2893
2963
|
"useNamedOperation": {
|
|
2894
2964
|
"description": "Enforce specifying the name of GraphQL operations.",
|
|
2895
2965
|
"anyOf": [
|
|
@@ -2911,6 +2981,13 @@
|
|
|
2911
2981
|
{ "type": "null" }
|
|
2912
2982
|
]
|
|
2913
2983
|
},
|
|
2984
|
+
"useObjectSpread": {
|
|
2985
|
+
"description": "Prefer object spread over Object.assign() when constructing new objects.",
|
|
2986
|
+
"anyOf": [
|
|
2987
|
+
{ "$ref": "#/definitions/RuleFixConfiguration" },
|
|
2988
|
+
{ "type": "null" }
|
|
2989
|
+
]
|
|
2990
|
+
},
|
|
2914
2991
|
"useParseIntRadix": {
|
|
2915
2992
|
"description": "Enforce the consistent use of the radix argument when using parseInt().",
|
|
2916
2993
|
"anyOf": [
|
|
@@ -2938,6 +3015,13 @@
|
|
|
2938
3015
|
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
2939
3016
|
{ "type": "null" }
|
|
2940
3017
|
]
|
|
3018
|
+
},
|
|
3019
|
+
"useUniqueElementIds": {
|
|
3020
|
+
"description": "Prevent the usage of static string literal id attribute on elements.",
|
|
3021
|
+
"anyOf": [
|
|
3022
|
+
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
3023
|
+
{ "type": "null" }
|
|
3024
|
+
]
|
|
2941
3025
|
}
|
|
2942
3026
|
},
|
|
2943
3027
|
"additionalProperties": false
|
|
@@ -3145,6 +3229,10 @@
|
|
|
3145
3229
|
{ "$ref": "#/definitions/OverrideLinterConfiguration" },
|
|
3146
3230
|
{ "type": "null" }
|
|
3147
3231
|
]
|
|
3232
|
+
},
|
|
3233
|
+
"plugins": {
|
|
3234
|
+
"description": "Specific configuration for additional plugins",
|
|
3235
|
+
"anyOf": [{ "$ref": "#/definitions/Plugins" }, { "type": "null" }]
|
|
3148
3236
|
}
|
|
3149
3237
|
},
|
|
3150
3238
|
"additionalProperties": false
|
|
@@ -3225,6 +3313,21 @@
|
|
|
3225
3313
|
"type": "array",
|
|
3226
3314
|
"items": { "$ref": "#/definitions/PluginConfiguration" }
|
|
3227
3315
|
},
|
|
3316
|
+
"PropertyAssignmentMode": {
|
|
3317
|
+
"description": "Specifies whether property assignments on function parameters are allowed or denied.",
|
|
3318
|
+
"oneOf": [
|
|
3319
|
+
{
|
|
3320
|
+
"description": "Allows property assignments on function parameters. This is the default behavior, enabling flexibility in parameter usage.",
|
|
3321
|
+
"type": "string",
|
|
3322
|
+
"enum": ["allow"]
|
|
3323
|
+
},
|
|
3324
|
+
{
|
|
3325
|
+
"description": "Disallows property assignments on function parameters. Enforces stricter immutability to prevent unintended side effects.",
|
|
3326
|
+
"type": "string",
|
|
3327
|
+
"enum": ["deny"]
|
|
3328
|
+
}
|
|
3329
|
+
]
|
|
3330
|
+
},
|
|
3228
3331
|
"QuoteProperties": { "type": "string", "enum": ["asNeeded", "preserve"] },
|
|
3229
3332
|
"QuoteStyle": { "type": "string", "enum": ["double", "single"] },
|
|
3230
3333
|
"Regex": { "type": "string" },
|
|
@@ -3335,6 +3438,11 @@
|
|
|
3335
3438
|
"type": "string",
|
|
3336
3439
|
"enum": ["next"]
|
|
3337
3440
|
},
|
|
3441
|
+
{
|
|
3442
|
+
"description": "Vue.js framework rules",
|
|
3443
|
+
"type": "string",
|
|
3444
|
+
"enum": ["vue"]
|
|
3445
|
+
},
|
|
3338
3446
|
{
|
|
3339
3447
|
"description": "For rules that require querying multiple files inside a project",
|
|
3340
3448
|
"type": "string",
|
|
@@ -3659,6 +3767,21 @@
|
|
|
3659
3767
|
},
|
|
3660
3768
|
"additionalProperties": false
|
|
3661
3769
|
},
|
|
3770
|
+
"RuleWithNoParameterAssignOptions": {
|
|
3771
|
+
"type": "object",
|
|
3772
|
+
"required": ["level"],
|
|
3773
|
+
"properties": {
|
|
3774
|
+
"level": {
|
|
3775
|
+
"description": "The severity of the emitted diagnostics by the rule",
|
|
3776
|
+
"allOf": [{ "$ref": "#/definitions/RulePlainConfiguration" }]
|
|
3777
|
+
},
|
|
3778
|
+
"options": {
|
|
3779
|
+
"description": "Rule's options",
|
|
3780
|
+
"allOf": [{ "$ref": "#/definitions/NoParameterAssignOptions" }]
|
|
3781
|
+
}
|
|
3782
|
+
},
|
|
3783
|
+
"additionalProperties": false
|
|
3784
|
+
},
|
|
3662
3785
|
"RuleWithNoPrivateImportsOptions": {
|
|
3663
3786
|
"type": "object",
|
|
3664
3787
|
"required": ["level"],
|
|
@@ -4222,20 +4345,6 @@
|
|
|
4222
4345
|
"description": "A list of rules that belong to this group",
|
|
4223
4346
|
"type": "object",
|
|
4224
4347
|
"properties": {
|
|
4225
|
-
"noArguments": {
|
|
4226
|
-
"description": "Disallow the use of arguments.",
|
|
4227
|
-
"anyOf": [
|
|
4228
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
4229
|
-
{ "type": "null" }
|
|
4230
|
-
]
|
|
4231
|
-
},
|
|
4232
|
-
"noCommaOperator": {
|
|
4233
|
-
"description": "Disallow comma operator.",
|
|
4234
|
-
"anyOf": [
|
|
4235
|
-
{ "$ref": "#/definitions/RuleConfiguration" },
|
|
4236
|
-
{ "type": "null" }
|
|
4237
|
-
]
|
|
4238
|
-
},
|
|
4239
4348
|
"noCommonJs": {
|
|
4240
4349
|
"description": "Disallow use of CommonJs module system in favor of ESM style imports.",
|
|
4241
4350
|
"anyOf": [
|
|
@@ -4330,7 +4439,7 @@
|
|
|
4330
4439
|
"noParameterAssign": {
|
|
4331
4440
|
"description": "Disallow reassigning function parameters.",
|
|
4332
4441
|
"anyOf": [
|
|
4333
|
-
{ "$ref": "#/definitions/
|
|
4442
|
+
{ "$ref": "#/definitions/NoParameterAssignConfiguration" },
|
|
4334
4443
|
{ "type": "null" }
|
|
4335
4444
|
]
|
|
4336
4445
|
},
|
|
@@ -5355,7 +5464,7 @@
|
|
|
5355
5464
|
"properties": {
|
|
5356
5465
|
"syntax": {
|
|
5357
5466
|
"description": "The preferred syntax to enforce.",
|
|
5358
|
-
"default": "
|
|
5467
|
+
"default": "shorthand",
|
|
5359
5468
|
"allOf": [{ "$ref": "#/definitions/ObjectPropertySyntax" }]
|
|
5360
5469
|
}
|
|
5361
5470
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@biomejs/biome",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"bin": {
|
|
5
5
|
"biome": "bin/biome"
|
|
6
6
|
},
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"provenance": true
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@biomejs/cli-win32-x64": "2.0.0
|
|
50
|
-
"@biomejs/cli-win32-arm64": "2.0.0
|
|
51
|
-
"@biomejs/cli-darwin-x64": "2.0.0
|
|
52
|
-
"@biomejs/cli-darwin-arm64": "2.0.0
|
|
53
|
-
"@biomejs/cli-linux-x64": "2.0.0
|
|
54
|
-
"@biomejs/cli-linux-arm64": "2.0.0
|
|
55
|
-
"@biomejs/cli-linux-x64-musl": "2.0.0
|
|
56
|
-
"@biomejs/cli-linux-arm64-musl": "2.0.0
|
|
49
|
+
"@biomejs/cli-win32-x64": "2.0.0",
|
|
50
|
+
"@biomejs/cli-win32-arm64": "2.0.0",
|
|
51
|
+
"@biomejs/cli-darwin-x64": "2.0.0",
|
|
52
|
+
"@biomejs/cli-darwin-arm64": "2.0.0",
|
|
53
|
+
"@biomejs/cli-linux-x64": "2.0.0",
|
|
54
|
+
"@biomejs/cli-linux-arm64": "2.0.0",
|
|
55
|
+
"@biomejs/cli-linux-x64-musl": "2.0.0",
|
|
56
|
+
"@biomejs/cli-linux-arm64-musl": "2.0.0"
|
|
57
57
|
}
|
|
58
58
|
}
|