@biomejs/biome 2.4.5 → 2.4.7

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.es.md CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  **Biome es un [formatter rápido](https://github.com/biomejs/biome/tree/main/benchmark#formatting)** para _JavaScript_, _TypeScript_, _JSX_, _JSON_, _CSS_ y _GraphQL_ que alcanza un **[97% de compatibilidad con _Prettier_](https://console.algora.io/challenges/prettier)**.
40
40
 
41
- **Biome es un [linter de alto rendimiento](https://github.com/biomejs/biome/tree/main/benchmark#linting)** para _JavaScript_, _TypeScript_, _JSX_, _JSON_, _CSS_, y _GraphQL_ que incluye **[más de 340 reglas](https://biomejs.dev/linter/javascript/rules/)** de ESLint, typescript-eslint, y [otras fuentes](https://github.com/biomejs/biome/discussions/3).
41
+ **Biome es un [linter de alto rendimiento](https://github.com/biomejs/biome/tree/main/benchmark#linting)** para _JavaScript_, _TypeScript_, _JSX_, _JSON_, _CSS_, y _GraphQL_ que incluye **[más de 450 reglas](https://biomejs.dev/linter/javascript/rules/)** de ESLint, typescript-eslint, y [otras fuentes](https://github.com/biomejs/biome/discussions/3).
42
42
  Produce **diagnósticos detallados y contextualizados** que ayudan a mejorar tu código y convertirte en un mejor programador!
43
43
 
44
44
  **Biome** fue diseñado desde cero para usarse [interactivamente dentro de un editor](https://biomejs.dev/guides/editors/first-party-extensions/).
package/README.fr.md CHANGED
@@ -40,7 +40,7 @@
40
40
 
41
41
  **Biome est un [outil de formatage rapide](./benchmark#formatting)** pour _JavaScript_, _TypeScript_, _JSX_, _JSON_, _CSS_ et _GraphQL_ qui atteint **[97 % de compatibilité avec _Prettier_](https://console.algora.io/challenges/prettier)**.
42
42
 
43
- **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 340 règles](https://biomejs.dev/fr/linter/javascript/rules/)** d’ESLint, de typescript-eslint, et [d’autres sources](https://github.com/biomejs/biome/discussions/3).
43
+ **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 450 règles](https://biomejs.dev/fr/linter/javascript/rules/)** d’ESLint, de typescript-eslint, et [d’autres sources](https://github.com/biomejs/biome/discussions/3).
44
44
  Il **fournit des diagnostics détaillés et contextualisés** qui vous aident à améliorer votre code et à devenir un meilleur programmeur !
45
45
 
46
46
  **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/).
package/README.ja.md CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  **Biome は _JavaScript_, _TypeScript_, _JSX_ そして _JSON_ 向けの[高速なFormatter](./benchmark#formatting)**であり、**[_Prettier_ との互換性は97%](https://console.algora.io/challenges/prettier)** を達成しています。
40
40
 
41
- **Biome は _JavaScript_, _TypeScript_, _JSX_ のための[高性能なLinter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** であり、ESLint, typescript-eslint, [その他のソース](https://github.com/biomejs/biome/discussions/3)から **[340以上のルール](https://biomejs.dev/ja/linter/javascript/rules/)**を提供しています。Biome は**詳細で文脈に沿った結果を出力**するため、コードを改善し、より良いプログラマになるための手助けをします!
41
+ **Biome は _JavaScript_, _TypeScript_, _JSX_ のための[高性能なLinter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** であり、ESLint, typescript-eslint, [その他のソース](https://github.com/biomejs/biome/discussions/3)から **[450以上のルール](https://biomejs.dev/ja/linter/javascript/rules/)**を提供しています。Biome は**詳細で文脈に沿った結果を出力**するため、コードを改善し、より良いプログラマになるための手助けをします!
42
42
 
43
43
  **Biome** は最初から[**エディタ内で対話的に**](https://biomejs.dev/ja/guides/editors/first-party-extensions/)使用できるように設計されています。
44
44
  あなたがコードを書いているときに、形の崩れたコードを format と lint することができます。
package/README.kr.md CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  **Biome**은 _JavaScript_, _TypeScript_, _JSX_, _JSON_, _CSS_ 및 *GraphQL*을 위한 **[고속 포매터](https://github.com/biomejs/biome/tree/main/benchmark#formatting)로**, **[*Prettier*와 97%의 호환성](https://console.algora.io/challenges/prettier)을** 자랑합니다.
40
40
 
41
- **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)에서 가져온 **[340개 이상의 규칙](https://biomejs.dev/linter/javascript/rules/)을** 제공합니다. **맥락을 고려한 상세한 진단 정보**를 제공하여 코드 품질 향상과 개발 실력 향상에 도움을 줍니다!
41
+ **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)에서 가져온 **[450개 이상의 규칙](https://biomejs.dev/linter/javascript/rules/)을** 제공합니다. **맥락을 고려한 상세한 진단 정보**를 제공하여 코드 품질 향상과 개발 실력 향상에 도움을 줍니다!
42
42
 
43
43
  **Biome**은 처음부터 [에디터와 상호작용](https://biomejs.dev/guides/editors/first-party-extensions/)하도록 설계되었습니다. 코드를 작성하는 동안에도 포매팅과 린팅을 수행할 수 있습니다.
44
44
 
package/README.md CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
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)**.
40
40
 
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 340 rules](https://biomejs.dev/linter/javascript/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 450 rules](https://biomejs.dev/linter/javascript/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/editors/first-party-extensions/).
package/README.pl.md CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  **Biome to [szybki formater](./benchmark#formatting)** dla _JavaScript_, _TypeScript_, _JSX_, _JSON_, _CSS_ i _GraphQL_, który osiąga **[97% kompatybilności z _Prettier_](https://console.algora.io/challenges/prettier)**.
40
40
 
41
- **Biome to [wydajny linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** dla _JavaScript_, _TypeScript_, _JSX_, _JSON_, _CSS_ i _GraphQL_, który zawiera **[ponad 340 reguł](https://biomejs.dev/linter/javascript/rules/)** z ESLint, typescript-eslint i [innych źródeł](https://github.com/biomejs/biome/discussions/3).
41
+ **Biome to [wydajny linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** dla _JavaScript_, _TypeScript_, _JSX_, _JSON_, _CSS_ i _GraphQL_, który zawiera **[ponad 450 reguł](https://biomejs.dev/linter/javascript/rules/)** z ESLint, typescript-eslint i [innych źródeł](https://github.com/biomejs/biome/discussions/3).
42
42
  **Wyprowadza szczegółowe i skontekstualizowane diagnostyki**, które pomagają Ci ulepszyć kod i zostać lepszym programistą!
43
43
 
44
44
  **Biome** jest zaprojektowany od początku do używania [interaktywnie w edytorze](https://biomejs.dev/guides/editors/first-party-extensions/).
package/README.pt-BR.md CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  **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)**.
40
40
 
41
- **Biome é um [linter eficiente](https://github.com/biomejs/biome/tree/main/benchmark#linting)** para _JavaScript_, _TypeScript_, e _JSX_ que possui **[mais de 340 regras](https://biomejs.dev/pt-br/linter/javascript/rules/)** do ESLint, typescript-eslint, e de [outras fontes](https://github.com/biomejs/biome/discussions/3).
41
+ **Biome é um [linter eficiente](https://github.com/biomejs/biome/tree/main/benchmark#linting)** para _JavaScript_, _TypeScript_, e _JSX_ que possui **[mais de 450 regras](https://biomejs.dev/pt-br/linter/javascript/rules/)** do ESLint, typescript-eslint, e de [outras fontes](https://github.com/biomejs/biome/discussions/3).
42
42
  Ele **fornece diagnósticos detalhados e contextualizados** que ajudam você a melhorar seu código e se tornar um programador melhor!
43
43
 
44
44
  **Biome** é projetado desde o início para ser usado [interativamente dentro de um editor](https://biomejs.dev/guides/editors/first-party-extensions/).
package/README.ru.md CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  **Biome - это [быстрый форматер](./benchmark#formatting)** для _JavaScript_, _TypeScript_, _JSX_, _JSON_, _CSS_ и _GraphQL_, обеспечивающий **[совместимость с _Prettier_ на 97%](https://console.algora.io/challenges/prettier)**.
40
40
 
41
- **Biome - это [высокопроизводительный линтер](https://github.com/biomejs/biome/tree/main/benchmark#linting)** для _JavaScript_, _TypeScript_, _JSX_, _CSS_ и _GraphQL_, содержащий **[более 340 правил](https://biomejs.dev/ru/linter/javascript/rules/)** из ESLint, typescript-eslint, и [других источников](https://github.com/biomejs/biome/discussions/3).
41
+ **Biome - это [высокопроизводительный линтер](https://github.com/biomejs/biome/tree/main/benchmark#linting)** для _JavaScript_, _TypeScript_, _JSX_, _CSS_ и _GraphQL_, содержащий **[более 450 правил](https://biomejs.dev/ru/linter/javascript/rules/)** из ESLint, typescript-eslint, и [других источников](https://github.com/biomejs/biome/discussions/3).
42
42
  Он **выводит подробную диагностику с контекстной информацией**, которая помогает вам улучшить ваш код и стать более лучшим программистом!
43
43
 
44
44
  **Biome** изначально разработан для [интерактивной работы в редакторе](https://biomejs.dev/guides/editors/first-party-extensions/).
package/README.uk.md CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  **Biome - це [швидкий форматувальник](./benchmark#formatting)** для _JavaScript_, _TypeScript_, _JSX_, _JSON_, _CSS_ та _GraphQL_, який досягає **[97% сумісності з _Prettier_](https://console.algora.io/challenges/prettier)**.
40
40
 
41
- **Biome - це [високопродуктивний лінтер](https://github.com/biomejs/biome/tree/main/benchmark#linting)** для _JavaScript_, _TypeScript_, _JSX_, _CSS_ та _GraphQL_, який містить **[понад 340 правил](https://biomejs.dev/uk/linter/javascript/rules/)** з ESLint, typescript-eslint та [інших джерел](https://github.com/biomejs/biome/discussions/3).
41
+ **Biome - це [високопродуктивний лінтер](https://github.com/biomejs/biome/tree/main/benchmark#linting)** для _JavaScript_, _TypeScript_, _JSX_, _CSS_ та _GraphQL_, який містить **[понад 450 правил](https://biomejs.dev/uk/linter/javascript/rules/)** з ESLint, typescript-eslint та [інших джерел](https://github.com/biomejs/biome/discussions/3).
42
42
  Він **виводить детальні та контекстуалізовані діагностичні дані**, які допомагають вам покращити ваш код та стати кращим програмістом!
43
43
 
44
44
  **Biome** з самого початку розроблений для [інтерактивного використання в редакторі](https://biomejs.dev/guides/editors/first-party-extensions/). Він може форматувати та лінтити некоректний код під час його написання.
package/README.zh-CN.md CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  **Biome 是一个[快速的格式化工具](./benchmark#formatting)**,适用于 _JavaScript_、_TypeScript_、_JSX_、_JSON_ 等,与 _Prettier_ 的兼容性达到了 **[97%](https://console.algora.io/challenges/prettier)**。
40
40
 
41
- **Biome 是一个[高性能的 Linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)**,适用于 _JavaScript_、_TypeScript_、_JSX_ 等,包含了来自 ESLint、typescript-eslint 和[其他来源](https://github.com/biomejs/biome/discussions/3)的 **[340 余项规则](https://biomejs.dev/zh-cn/linter/javascript/rules/)**。它**输出详细且有上下文诊断信息**,能帮助你优化代码,成为一名更好的程序员!
41
+ **Biome 是一个[高性能的 Linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)**,适用于 _JavaScript_、_TypeScript_、_JSX_ 等,包含了来自 ESLint、typescript-eslint 和[其他来源](https://github.com/biomejs/biome/discussions/3)的 **[450 余项规则](https://biomejs.dev/zh-cn/linter/javascript/rules/)**。它**输出详细且有上下文诊断信息**,能帮助你优化代码,成为一名更好的程序员!
42
42
 
43
43
  **Biome** 从一开始就设计为[在编辑器中交互式使用](https://biomejs.dev/zh-cn/guides/editors/first-party-extensions/)。它可以在你编写代码时格式化并检查出不规范的代码。
44
44
 
package/README.zh-TW.md CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  **Biome 是一個 [快速格式化工具](./benchmark#formatting)**,支援 _JavaScript_、_TypeScript_、_JSX_、_JSON_、_CSS_ 和 _GraphQL_,其 **與 _Prettier_ 的相容性達到 [97%](https://console.algora.io/challenges/prettier)**。
40
40
 
41
- **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)的 **[超過 340 條規則](https://biomejs.dev/linter/javascript/rules)**。
41
+ **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)的 **[超過 450 條規則](https://biomejs.dev/linter/javascript/rules)**。
42
42
  它 **輸出詳細且具上下文的診斷資訊**,幫助你改進程式碼並成為更好的程式設計師!
43
43
 
44
44
  **Biome** 從一開始就設計為可在 [編輯器中互動使用](https://biomejs.dev/guides/editors/first-party-extensions/)。
@@ -390,6 +390,37 @@
390
390
  "additionalProperties": false
391
391
  },
392
392
  "AttributePosition": { "type": "string", "enum": ["auto", "multiline"] },
393
+ "AvailabilityNamed": {
394
+ "description": "Named Baseline availability tiers.",
395
+ "oneOf": [
396
+ {
397
+ "description": "Warn on anything not Baseline widely available (default).",
398
+ "type": "string",
399
+ "const": "widely"
400
+ },
401
+ {
402
+ "description": "Warn on anything not at least Baseline newly available.",
403
+ "type": "string",
404
+ "const": "newly"
405
+ }
406
+ ]
407
+ },
408
+ "AvailabilityTarget": {
409
+ "description": "The Baseline availability level to target.\n\n- `\"widely\"` – warn on anything not Baseline widely available.\n- `\"newly\"` – warn on anything not at least Baseline newly available.\n- A year (e.g. `2023`) – warn on anything whose `baseline_low_date` is after\n that year (i.e. became newly available after that year).",
410
+ "anyOf": [
411
+ {
412
+ "description": "A named tier: `\"widely\"` or `\"newly\"`.",
413
+ "$ref": "#/$defs/AvailabilityNamed"
414
+ },
415
+ {
416
+ "description": "A year cutoff (e.g. `2023`).",
417
+ "type": "integer",
418
+ "format": "uint16",
419
+ "maximum": 65535,
420
+ "minimum": 0
421
+ }
422
+ ]
423
+ },
393
424
  "Bool": { "type": "boolean" },
394
425
  "BracketSameLine": {
395
426
  "description": "Put the `>` of a multi-line HTML or JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements).",
@@ -3441,6 +3472,16 @@
3441
3472
  "type": "object",
3442
3473
  "additionalProperties": false
3443
3474
  },
3475
+ "NoEmptyObjectKeysConfiguration": {
3476
+ "oneOf": [
3477
+ { "$ref": "#/$defs/RulePlainConfiguration" },
3478
+ { "$ref": "#/$defs/RuleWithNoEmptyObjectKeysOptions" }
3479
+ ]
3480
+ },
3481
+ "NoEmptyObjectKeysOptions": {
3482
+ "type": "object",
3483
+ "additionalProperties": false
3484
+ },
3444
3485
  "NoEmptyPatternConfiguration": {
3445
3486
  "oneOf": [
3446
3487
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -4982,6 +5023,16 @@
4982
5023
  "type": "object",
4983
5024
  "additionalProperties": false
4984
5025
  },
5026
+ "NoTopLevelLiteralsConfiguration": {
5027
+ "oneOf": [
5028
+ { "$ref": "#/$defs/RulePlainConfiguration" },
5029
+ { "$ref": "#/$defs/RuleWithNoTopLevelLiteralsOptions" }
5030
+ ]
5031
+ },
5032
+ "NoTopLevelLiteralsOptions": {
5033
+ "type": "object",
5034
+ "additionalProperties": false
5035
+ },
4985
5036
  "NoTsIgnoreConfiguration": {
4986
5037
  "oneOf": [
4987
5038
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -5850,6 +5901,13 @@
5850
5901
  { "type": "null" }
5851
5902
  ]
5852
5903
  },
5904
+ "noEmptyObjectKeys": {
5905
+ "description": "Disallow empty keys in JSON objects.\nSee https://biomejs.dev/linter/rules/no-empty-object-keys",
5906
+ "anyOf": [
5907
+ { "$ref": "#/$defs/NoEmptyObjectKeysConfiguration" },
5908
+ { "type": "null" }
5909
+ ]
5910
+ },
5853
5911
  "noEqualsToNull": {
5854
5912
  "description": "Require the use of === or !== for comparison with null.\nSee https://biomejs.dev/linter/rules/no-equals-to-null",
5855
5913
  "anyOf": [
@@ -6081,6 +6139,13 @@
6081
6139
  { "type": "null" }
6082
6140
  ]
6083
6141
  },
6142
+ "noTopLevelLiterals": {
6143
+ "description": "Require the JSON top-level value to be an array or object.\nSee https://biomejs.dev/linter/rules/no-top-level-literals",
6144
+ "anyOf": [
6145
+ { "$ref": "#/$defs/NoTopLevelLiteralsConfiguration" },
6146
+ { "type": "null" }
6147
+ ]
6148
+ },
6084
6149
  "noUndeclaredEnvVars": {
6085
6150
  "description": "Disallow the use of undeclared environment variables.\nSee https://biomejs.dev/linter/rules/no-undeclared-env-vars",
6086
6151
  "anyOf": [
@@ -6162,6 +6227,13 @@
6162
6227
  { "type": "null" }
6163
6228
  ]
6164
6229
  },
6230
+ "useBaseline": {
6231
+ "description": "Disallow CSS properties, values, at-rules, functions, and selectors that are not part of the configured Baseline.\nSee https://biomejs.dev/linter/rules/use-baseline",
6232
+ "anyOf": [
6233
+ { "$ref": "#/$defs/UseBaselineConfiguration" },
6234
+ { "type": "null" }
6235
+ ]
6236
+ },
6165
6237
  "useConsistentEnumValueType": {
6166
6238
  "description": "Disallow enums from having both number and string members.\nSee https://biomejs.dev/linter/rules/use-consistent-enum-value-type",
6167
6239
  "anyOf": [
@@ -6232,6 +6304,13 @@
6232
6304
  { "type": "null" }
6233
6305
  ]
6234
6306
  },
6307
+ "useImportsFirst": {
6308
+ "description": "Enforce that all imports appear at the top of the module.\nSee https://biomejs.dev/linter/rules/use-imports-first",
6309
+ "anyOf": [
6310
+ { "$ref": "#/$defs/UseImportsFirstConfiguration" },
6311
+ { "type": "null" }
6312
+ ]
6313
+ },
6235
6314
  "useInlineScriptId": {
6236
6315
  "description": "Enforce id attribute on next/script components with inline content or dangerouslySetInnerHTML.\nSee https://biomejs.dev/linter/rules/use-inline-script-id",
6237
6316
  "anyOf": [
@@ -7763,6 +7842,15 @@
7763
7842
  "additionalProperties": false,
7764
7843
  "required": ["level"]
7765
7844
  },
7845
+ "RuleWithNoEmptyObjectKeysOptions": {
7846
+ "type": "object",
7847
+ "properties": {
7848
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
7849
+ "options": { "$ref": "#/$defs/NoEmptyObjectKeysOptions" }
7850
+ },
7851
+ "additionalProperties": false,
7852
+ "required": ["level"]
7853
+ },
7766
7854
  "RuleWithNoEmptyPatternOptions": {
7767
7855
  "type": "object",
7768
7856
  "properties": {
@@ -9113,6 +9201,15 @@
9113
9201
  "additionalProperties": false,
9114
9202
  "required": ["level"]
9115
9203
  },
9204
+ "RuleWithNoTopLevelLiteralsOptions": {
9205
+ "type": "object",
9206
+ "properties": {
9207
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
9208
+ "options": { "$ref": "#/$defs/NoTopLevelLiteralsOptions" }
9209
+ },
9210
+ "additionalProperties": false,
9211
+ "required": ["level"]
9212
+ },
9116
9213
  "RuleWithNoTsIgnoreOptions": {
9117
9214
  "type": "object",
9118
9215
  "properties": {
@@ -9902,6 +9999,15 @@
9902
9999
  "additionalProperties": false,
9903
10000
  "required": ["level"]
9904
10001
  },
10002
+ "RuleWithUseBaselineOptions": {
10003
+ "type": "object",
10004
+ "properties": {
10005
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10006
+ "options": { "$ref": "#/$defs/UseBaselineOptions" }
10007
+ },
10008
+ "additionalProperties": false,
10009
+ "required": ["level"]
10010
+ },
9905
10011
  "RuleWithUseBiomeIgnoreFolderOptions": {
9906
10012
  "type": "object",
9907
10013
  "properties": {
@@ -10442,6 +10548,15 @@
10442
10548
  "additionalProperties": false,
10443
10549
  "required": ["level"]
10444
10550
  },
10551
+ "RuleWithUseImportsFirstOptions": {
10552
+ "type": "object",
10553
+ "properties": {
10554
+ "level": { "$ref": "#/$defs/RulePlainConfiguration" },
10555
+ "options": { "$ref": "#/$defs/UseImportsFirstOptions" }
10556
+ },
10557
+ "additionalProperties": false,
10558
+ "required": ["level"]
10559
+ },
10445
10560
  "RuleWithUseIndexOfOptions": {
10446
10561
  "type": "object",
10447
10562
  "properties": {
@@ -12968,6 +13083,56 @@
12968
13083
  "type": "object",
12969
13084
  "additionalProperties": false
12970
13085
  },
13086
+ "UseBaselineConfiguration": {
13087
+ "oneOf": [
13088
+ { "$ref": "#/$defs/RulePlainConfiguration" },
13089
+ { "$ref": "#/$defs/RuleWithUseBaselineOptions" }
13090
+ ]
13091
+ },
13092
+ "UseBaselineOptions": {
13093
+ "description": "Options for the `useBaseline` rule.",
13094
+ "type": "object",
13095
+ "properties": {
13096
+ "allowAtRules": {
13097
+ "description": "CSS at-rules to exclude from checking (without `@`, case-insensitive).",
13098
+ "type": "array",
13099
+ "items": { "type": "string" }
13100
+ },
13101
+ "allowFunctions": {
13102
+ "description": "CSS value functions to exclude from checking (case-insensitive).",
13103
+ "type": "array",
13104
+ "items": { "type": "string" }
13105
+ },
13106
+ "allowMediaConditions": {
13107
+ "description": "CSS media conditions to exclude from checking (case-insensitive).",
13108
+ "type": "array",
13109
+ "items": { "type": "string" }
13110
+ },
13111
+ "allowProperties": {
13112
+ "description": "CSS properties to exclude from checking (case-insensitive).",
13113
+ "type": "array",
13114
+ "items": { "type": "string" }
13115
+ },
13116
+ "allowPropertyValues": {
13117
+ "description": "CSS property values to exclude from checking (maps property name to allowed values, case-insensitive).",
13118
+ "type": "object",
13119
+ "additionalProperties": {
13120
+ "type": "array",
13121
+ "items": { "type": "string" }
13122
+ }
13123
+ },
13124
+ "allowSelectors": {
13125
+ "description": "CSS pseudo-selectors to exclude from checking (without `:` or `::`, case-insensitive).",
13126
+ "type": "array",
13127
+ "items": { "type": "string" }
13128
+ },
13129
+ "available": {
13130
+ "description": "The availability level to target. Defaults to `\"widely\"`.",
13131
+ "$ref": "#/$defs/AvailabilityTarget"
13132
+ }
13133
+ },
13134
+ "additionalProperties": false
13135
+ },
12971
13136
  "UseBiomeIgnoreFolderConfiguration": {
12972
13137
  "oneOf": [
12973
13138
  { "$ref": "#/$defs/RulePlainConfiguration" },
@@ -13678,6 +13843,16 @@
13678
13843
  "type": "string",
13679
13844
  "enum": ["auto", "inlineType", "separatedType"]
13680
13845
  },
13846
+ "UseImportsFirstConfiguration": {
13847
+ "oneOf": [
13848
+ { "$ref": "#/$defs/RulePlainConfiguration" },
13849
+ { "$ref": "#/$defs/RuleWithUseImportsFirstOptions" }
13850
+ ]
13851
+ },
13852
+ "UseImportsFirstOptions": {
13853
+ "type": "object",
13854
+ "additionalProperties": false
13855
+ },
13681
13856
  "UseIndexOfConfiguration": {
13682
13857
  "oneOf": [
13683
13858
  { "$ref": "#/$defs/RulePlainConfiguration" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biomejs/biome",
3
- "version": "2.4.5",
3
+ "version": "2.4.7",
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.4.5",
50
- "@biomejs/cli-win32-arm64": "2.4.5",
51
- "@biomejs/cli-darwin-x64": "2.4.5",
52
- "@biomejs/cli-darwin-arm64": "2.4.5",
53
- "@biomejs/cli-linux-x64": "2.4.5",
54
- "@biomejs/cli-linux-arm64": "2.4.5",
55
- "@biomejs/cli-linux-x64-musl": "2.4.5",
56
- "@biomejs/cli-linux-arm64-musl": "2.4.5"
49
+ "@biomejs/cli-win32-x64": "2.4.7",
50
+ "@biomejs/cli-win32-arm64": "2.4.7",
51
+ "@biomejs/cli-darwin-x64": "2.4.7",
52
+ "@biomejs/cli-darwin-arm64": "2.4.7",
53
+ "@biomejs/cli-linux-x64": "2.4.7",
54
+ "@biomejs/cli-linux-arm64": "2.4.7",
55
+ "@biomejs/cli-linux-x64-musl": "2.4.7",
56
+ "@biomejs/cli-linux-arm64-musl": "2.4.7"
57
57
  }
58
58
  }