@biomejs/biome 2.0.0-beta.6 → 2.0.1

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 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/integrate-in-editor/).
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/integrate-in-editor/) उपयोग करने के लिए डिज़ाइन[^17] किया गया है। यह आपके द्वारा लिखे जा रहे विकृत[^18] कोड[^13] को स्वरूप[^5] और लिंट[^8] कर सकता है।
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/integrate-in-editor/)使用できるように設計されています。
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/integrate-in-editor/)하도록 설계되었습니다. 코드를 작성하는 동안에도 포매팅과 린팅을 수행할 수 있습니다.
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 270 rules](https://biomejs.dev/linter/rules/)** from ESLint, typescript-eslint, and [other sources](https://github.com/biomejs/biome/discussions/3).
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/integrate-in-editor/).
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 ./src
57
+ npx @biomejs/biome format --write
59
58
 
60
59
  # lint files and apply the safe fixes
61
- npx @biomejs/biome lint --write ./src
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 ./src
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 ./src
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** unifies functionality that has 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.
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
- ### Issue funding
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/integrate-in-editor/).
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/integrate-in-editor/).
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/integrate-in-editor/). Він може форматувати та лінтити некоректний код під час його написання.
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/integrate-in-editor/)。它可以在你编写代码时格式化并检查出不规范的代码。
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/integrate-in-editor/)。
45
+ **Biome** 從一開始就設計為可在 [編輯器中互動使用](https://biomejs.dev/guides/editors/first-party-extensions/)。
46
46
  它可以在你編寫程式碼時格式化和檢查錯誤的程式碼。
47
47
 
48
48
  ### 安裝
package/bin/biome CHANGED
File without changes
@@ -2581,6 +2581,24 @@
2581
2581
  },
2582
2582
  "additionalProperties": false
2583
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
+ },
2584
2602
  "NoPrivateImportsConfiguration": {
2585
2603
  "anyOf": [
2586
2604
  { "$ref": "#/definitions/RulePlainConfiguration" },
@@ -2690,8 +2708,8 @@
2690
2708
  "type": "object",
2691
2709
  "properties": {
2692
2710
  "ignoreRestSiblings": {
2693
- "description": "Whether to ignore unused variables from an object destructuring with a spread (i.e.: whether `a` and `b` in `const { a, b, ...rest } = obj` should be ignored by this rule).",
2694
- "default": false,
2711
+ "description": "Whether to ignore unused variables from an object destructuring with a spread.",
2712
+ "default": true,
2695
2713
  "type": "boolean"
2696
2714
  }
2697
2715
  },
@@ -3295,6 +3313,21 @@
3295
3313
  "type": "array",
3296
3314
  "items": { "$ref": "#/definitions/PluginConfiguration" }
3297
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
+ },
3298
3331
  "QuoteProperties": { "type": "string", "enum": ["asNeeded", "preserve"] },
3299
3332
  "QuoteStyle": { "type": "string", "enum": ["double", "single"] },
3300
3333
  "Regex": { "type": "string" },
@@ -3405,6 +3438,11 @@
3405
3438
  "type": "string",
3406
3439
  "enum": ["next"]
3407
3440
  },
3441
+ {
3442
+ "description": "Vue.js framework rules",
3443
+ "type": "string",
3444
+ "enum": ["vue"]
3445
+ },
3408
3446
  {
3409
3447
  "description": "For rules that require querying multiple files inside a project",
3410
3448
  "type": "string",
@@ -3729,6 +3767,21 @@
3729
3767
  },
3730
3768
  "additionalProperties": false
3731
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
+ },
3732
3785
  "RuleWithNoPrivateImportsOptions": {
3733
3786
  "type": "object",
3734
3787
  "required": ["level"],
@@ -4386,7 +4439,7 @@
4386
4439
  "noParameterAssign": {
4387
4440
  "description": "Disallow reassigning function parameters.",
4388
4441
  "anyOf": [
4389
- { "$ref": "#/definitions/RuleConfiguration" },
4442
+ { "$ref": "#/definitions/NoParameterAssignConfiguration" },
4390
4443
  { "type": "null" }
4391
4444
  ]
4392
4445
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biomejs/biome",
3
- "version": "2.0.0-beta.6",
3
+ "version": "2.0.1",
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-beta.6",
50
- "@biomejs/cli-win32-arm64": "2.0.0-beta.6",
51
- "@biomejs/cli-darwin-x64": "2.0.0-beta.6",
52
- "@biomejs/cli-darwin-arm64": "2.0.0-beta.6",
53
- "@biomejs/cli-linux-x64": "2.0.0-beta.6",
54
- "@biomejs/cli-linux-arm64": "2.0.0-beta.6",
55
- "@biomejs/cli-linux-x64-musl": "2.0.0-beta.6",
56
- "@biomejs/cli-linux-arm64-musl": "2.0.0-beta.6"
49
+ "@biomejs/cli-win32-x64": "2.0.1",
50
+ "@biomejs/cli-win32-arm64": "2.0.1",
51
+ "@biomejs/cli-darwin-x64": "2.0.1",
52
+ "@biomejs/cli-darwin-arm64": "2.0.1",
53
+ "@biomejs/cli-linux-x64": "2.0.1",
54
+ "@biomejs/cli-linux-arm64": "2.0.1",
55
+ "@biomejs/cli-linux-x64-musl": "2.0.1",
56
+ "@biomejs/cli-linux-arm64-musl": "2.0.1"
57
57
  }
58
58
  }