@biomejs/biome 1.4.1-nightly.efc084c → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.ja.md CHANGED
@@ -1,7 +1,9 @@
1
1
  <p align="center">
2
- <img alt="Biome - Toolchain of the web"
3
- src="https://raw.githubusercontent.com/biomejs/resources/main/biome-logo-slogan.svg"
4
- width="400">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-dark-transparent.svg">
4
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-light-transparent.svg">
5
+ <img alt="Biome - Toolchain of the web" src="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-light-transparent.svg" width="700">
6
+ </picture>
5
7
  </p>
6
8
 
7
9
  <div align="center">
@@ -25,9 +27,15 @@
25
27
 
26
28
  </div>
27
29
 
30
+ <div align="center">
31
+
32
+ [English](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.md) | [简体中文](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.zh-CN.md) | 日本語 | [Português do Brasil](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.pt-br.md)
33
+
34
+ </div>
35
+
28
36
  **Biome** はWebプロジェクトのための高性能なツールチェーンであり、プロジェクトの健全性を維持するための開発者ツールの提供を目的としています。
29
37
 
30
- **Biome は _JavaScript_, _TypeScript_, _JSX_ そして _JSON_ 向けの[高速なFormatter](./benchmark#formatting)**であり、**[_Prettier_ との互換性は96%](https://console.algora.io/challenges/prettier)** を達成しています。
38
+ **Biome は _JavaScript_, _TypeScript_, _JSX_ そして _JSON_ 向けの[高速なFormatter](./benchmark#formatting)**であり、**[_Prettier_ との互換性は97%](https://console.algora.io/challenges/prettier)** を達成しています。
31
39
 
32
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 は**詳細で文脈に沿った結果を出力**するため、コードを改善し、より良いプログラマになるための手助けをします!
33
41
 
@@ -107,13 +115,6 @@ Biome についてもっと知るために[ホームページ][biomejs]をチェ
107
115
  </tbody>
108
116
  </table>
109
117
 
110
- ## 翻訳
111
-
112
- - [English](./README.md)
113
- - [简体中文](./README.zh-CN.md)
114
- - 日本語
115
- - [Português do Brasil](./README.pt-br.md)
116
-
117
118
  [biomejs]: https://biomejs.dev/ja/
118
119
  [biome-philosophy]: https://biomejs.dev/ja/internals/philosophy/
119
120
  [language-support]: https://biomejs.dev/ja/internals/language-support/
package/README.md CHANGED
@@ -1,7 +1,9 @@
1
1
  <p align="center">
2
- <img alt="Biome - Toolchain of the web"
3
- src="https://raw.githubusercontent.com/biomejs/resources/main/biome-logo-slogan.svg"
4
- width="400">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-dark-transparent.svg">
4
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-light-transparent.svg">
5
+ <img alt="Shows the banner of Biome, with its logo and the phrase 'Biome - Toolchain of the web'." src="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-light-transparent.svg" width="700">
6
+ </picture>
5
7
  </p>
6
8
 
7
9
  <div align="center">
@@ -25,11 +27,17 @@
25
27
 
26
28
  </div>
27
29
 
30
+ <div align="center">
31
+
32
+ English | [简体中文](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.zh-CN.md) | [日本語](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.ja.md) | [Português do Brasil](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.pt-br.md)
33
+
34
+ </div>
35
+
28
36
  **Biome** is a performant toolchain for web projects, it aims to provide developer tools to maintain the health of said projects.
29
37
 
30
- **Biome is a [fast formatter](./benchmark#formatting)** for _JavaScript_, _TypeScript_, _JSX_, and _JSON_ that scores **[96% compatibility with _Prettier_](https://console.algora.io/challenges/prettier)**.
38
+ **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)**.
31
39
 
32
- **Biome is a [performant linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)** for _JavaScript_, _TypeScript_, and _JSX_ that features **[more than 170 rules](https://biomejs.dev/linter/rules/)** from ESLint, TypeSCript ESLint, and [other sources](https://github.com/biomejs/biome/discussions/3).
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, TypeScript ESLint, and [other sources](https://github.com/biomejs/biome/discussions/3).
33
41
  It **outputs detailed and contextualized diagnostics** that help you to improve your code and become a better programmer!
34
42
 
35
43
  **Biome** is designed from the start to be used [interactively within an editor](https://biomejs.dev/guides/integrate-in-editor/).
@@ -109,13 +117,6 @@ Read more about our [project philosophy][biome-philosophy].
109
117
  </tbody>
110
118
  </table>
111
119
 
112
- ## Translations
113
-
114
- - English
115
- - [简体中文](./packages/%40biomejs/biome/README.zh-CN.md)
116
- - [日本語](./packages/%40biomejs/biome/README.ja.md)
117
- - [Português do Brasil](./packages/%40biomejs/biome/README.pt-br.md)
118
-
119
120
  [biomejs]: https://biomejs.dev/
120
121
  [biome-philosophy]: https://biomejs.dev/internals/philosophy/
121
122
  [language-support]: https://biomejs.dev/internals/language-support/
package/README.pt-br.md CHANGED
@@ -1,7 +1,9 @@
1
1
  <p align="center">
2
- <img alt="Biome - Conjunto de ferramentas da web"
3
- src="https://raw.githubusercontent.com/biomejs/resources/main/biome-logo-slogan.svg"
4
- width="400">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-dark-transparent.svg">
4
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-light-transparent.svg">
5
+ <img alt="Biome - Conjunto de ferramentas da web" src="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-light-transparent.svg" width="700">
6
+ </picture>
5
7
  </p>
6
8
 
7
9
  <div align="center">
@@ -25,11 +27,17 @@
25
27
 
26
28
  </div>
27
29
 
30
+ <div align="center">
31
+
32
+ [English](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.md) | [简体中文](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.zh-CN.md) | [日本語](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.ja.md) | Português do Brasil
33
+
34
+ </div>
35
+
28
36
  **Biome** é um conjunto de ferramentas de alto desempenho para projetos web, visando fornecer recursos de desenvolvimento para manter a saúde desses projetos.
29
37
 
30
- **Biome é um [formatador rápido](./benchmark#formatting)** para _JavaScript_, _TypeScript_, _JSX_, e _JSON_ que atinge **[96% de compatibilidade com o _Prettier_](https://console.algora.io/challenges/prettier)**.
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)**.
31
39
 
32
- **Biome é um [linter eficiente](https://github.com/biomejs/biome/tree/main/benchmark#linting)** para _JavaScript_, _TypeScript_, e _JSX_ que possui **[mais de 170 regras](https://biomejs.dev/linter/rules/)** do ESLint, TypeScript ESLint, e de [outras fontes](https://github.com/biomejs/biome/discussions/3).
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).
33
41
  Ele **fornece diagnósticos detalhados e contextualizados** que ajudam você a melhorar seu código e se tornar um programador melhor!
34
42
 
35
43
  **Biome** é projetado desde o início para ser usado [interativamente dentro de um editor](https://biomejs.dev/guides/integrate-in-editor/).
@@ -111,13 +119,6 @@ Leia mais sobre nossa [filosofia de projeto][biome-philosophy].
111
119
  </tbody>
112
120
  </table>
113
121
 
114
- ## Traduções
115
-
116
- - [English](./README.md)
117
- - [简体中文](./README.zh-CN.md)
118
- - [日本語](./README.ja.md)
119
- - Português do Brasil
120
-
121
122
  [biomejs]: https://biomejs.dev/pt-br/
122
123
  [biome-philosophy]: https://biomejs.dev/pt-br/internals/philosophy/
123
124
  [language-support]: https://biomejs.dev/pt-br/internals/language-support/
package/README.zh-CN.md CHANGED
@@ -1,7 +1,9 @@
1
1
  <p align="center">
2
- <img alt="Biome - Toolchain of the web"
3
- src="https://raw.githubusercontent.com/biomejs/resources/main/biome-logo-slogan.svg"
4
- width="400">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-dark-transparent.svg">
4
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-light-transparent.svg">
5
+ <img alt="Biome - Toolchain of the web" src="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-light-transparent.svg" width="700">
6
+ </picture>
5
7
  </p>
6
8
 
7
9
  <div align="center">
@@ -25,15 +27,19 @@
25
27
 
26
28
  </div>
27
29
 
28
- **Biome** 是一个用于网络项目的高性能工具链,旨在为开发者提供维护这些项目的工具。
30
+ <div align="center">
31
+
32
+ [English](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.md) | 简体中文 | [日本語](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.ja.md) | [Português do Brasil](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.pt-br.md)
33
+
34
+ </div>
29
35
 
30
- **Biome 是一个[快速的格式化器](./benchmark#formatting)**,适用于 _JavaScript_、_TypeScript_、_JSX_ 和 _JSON_,与 _Prettier_ 的兼容性达到了 **[96%](https://console.algora.io/challenges/prettier)**。
36
+ **Biome** 是一个用于 Web 项目的高性能工具链,旨在为开发者提供维护项目的工具。
31
37
 
32
- **Biome 是一个[高性能的 linter](https://github.com/biomejs/biome/tree/main/benchmark#linting)**,适用于 _JavaScript_、_TypeScript_ 和 _JSX_,包含了来自 ESLint、TypeSCript ESLint 和 [其他来源](https://github.com/biomejs/biome/discussions/3)的 **[超过 170 条规则](https://biomejs.dev/zh-cn/linter/rules/)**。
33
- 它**输出详细且有上下文的诊断信息**,帮助你改进代码,成为一个更好的程序员!
38
+ **Biome 是一个[快速的格式化工具](./benchmark#formatting)**,适用于 _JavaScript_、_TypeScript_、_JSX_、_JSON_ 等,与 _Prettier_ 的兼容性达到了 **[97%](https://console.algora.io/challenges/prettier)**。
34
39
 
35
- **Biome** 从一开始就设计为[在编辑器中交互式使用](https://biomejs.dev/zh-cn/guides/integrate-in-editor/)。
36
- 你在编写代码时,它可以格式化和 lint 不规范的代码。
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
+
42
+ **Biome** 从一开始就设计为[在编辑器中交互式使用](https://biomejs.dev/zh-cn/guides/integrate-in-editor/)。它可以在你编写代码时格式化并检查出不规范的代码。
37
43
 
38
44
  ### 安装
39
45
 
@@ -47,13 +53,13 @@ npm install --save-dev --save-exact @biomejs/biome
47
53
  # 格式化文件
48
54
  npx @biomejs/biome format --write ./src
49
55
 
50
- # lint 文件
56
+ # Lint 文件
51
57
  npx @biomejs/biome lint ./src
52
58
 
53
- # 运行格式化,lint 等,并应用安全的建议
59
+ # 运行格式化,Lint 等,并应用安全的建议
54
60
  npx @biomejs/biome check --apply ./src
55
61
 
56
- # 在 CI 环境中检查所有文件是否符合格式,lint 等
62
+ # 在 CI 环境中检查所有文件是否符合格式,Lint 等
57
63
  npx @biomejs/biome ci ./src
58
64
  ```
59
65
 
@@ -61,16 +67,15 @@ npx @biomejs/biome ci ./src
61
67
 
62
68
  ## 文档
63
69
 
64
- 查看我们的[主页][biomejs]以了解更多关于 Biome 的信息,
65
- 或者直接前往[入门指南][getting-started]开始使用 Biome。
70
+ 查看我们的[主页][biomejs]以了解更多关于 Biome 的信息,或者直接前往[入门指南][getting-started]开始使用 Biome。
66
71
 
67
- ## 更多关于 Biome
72
+ ## 更多信息
68
73
 
69
74
  **Biome** 有合理的默认设置,不需要配置。
70
75
 
71
76
  **Biome** 旨在支持[所有主要的现代网络开发语言][language-support]。
72
77
 
73
- **Biome** [不需要 Node.js](https://biomejs.dev/zh-cn/guides/manual-installation/)就可以运行。
78
+ **Biome** [不需要 Node.js](https://biomejs.dev/zh-cn/guides/manual-installation/) 就可以运行。
74
79
 
75
80
  **Biome** 有一流的 LSP 支持,具有精密的解析器,可以完全保真地表示源文本,并具有顶级的错误恢复能力。
76
81
 
@@ -106,13 +111,6 @@ npx @biomejs/biome ci ./src
106
111
  </tbody>
107
112
  </table>
108
113
 
109
- ## 翻译
110
-
111
- - [English](./README.md)
112
- - 简体中文
113
- - [日本語](./README.ja.md)
114
- - [Português do Brasil](./README.pt-br.md)
115
-
116
114
  [biomejs]: https://biomejs.dev/zh-cn/
117
115
  [biome-philosophy]: https://biomejs.dev/zh-cn/internals/philosophy/
118
116
  [language-support]: https://biomejs.dev/zh-cn/internals/language-support/
@@ -87,6 +87,13 @@
87
87
  { "type": "null" }
88
88
  ]
89
89
  },
90
+ "noAriaHiddenOnFocusable": {
91
+ "description": "Enforce that aria-hidden=\"true\" is not set on focusable elements.",
92
+ "anyOf": [
93
+ { "$ref": "#/definitions/RuleConfiguration" },
94
+ { "type": "null" }
95
+ ]
96
+ },
90
97
  "noAriaUnsupportedElements": {
91
98
  "description": "Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.",
92
99
  "anyOf": [
@@ -266,6 +273,13 @@
266
273
  { "type": "null" }
267
274
  ]
268
275
  },
276
+ "useValidAriaRole": {
277
+ "description": "Elements with ARIA roles must use a valid, non-abstract ARIA role.",
278
+ "anyOf": [
279
+ { "$ref": "#/definitions/RuleConfiguration" },
280
+ { "type": "null" }
281
+ ]
282
+ },
269
283
  "useValidAriaValues": {
270
284
  "description": "Enforce that ARIA state and property values are valid.",
271
285
  "anyOf": [
@@ -449,6 +463,13 @@
449
463
  { "type": "null" }
450
464
  ]
451
465
  },
466
+ "useRegexLiterals": {
467
+ "description": "Enforce the use of the regular expression literals instead of the RegExp constructor if possible.",
468
+ "anyOf": [
469
+ { "$ref": "#/definitions/RuleConfiguration" },
470
+ { "type": "null" }
471
+ ]
472
+ },
452
473
  "useSimpleNumberKeys": {
453
474
  "description": "Disallow number literal object member names which are not base10 or uses underscore as separator",
454
475
  "anyOf": [
@@ -775,6 +796,9 @@
775
796
  "lineWidth": {
776
797
  "description": "What's the max width of a line applied to CSS (and its super languages) files. Defaults to 80.",
777
798
  "anyOf": [{ "$ref": "#/definitions/LineWidth" }, { "type": "null" }]
799
+ },
800
+ "quoteStyle": {
801
+ "anyOf": [{ "$ref": "#/definitions/QuoteStyle" }, { "type": "null" }]
778
802
  }
779
803
  },
780
804
  "additionalProperties": false
@@ -790,6 +814,11 @@
790
814
  },
791
815
  "additionalProperties": false
792
816
  },
817
+ "DeprecatedHooksOptions": {
818
+ "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.",
819
+ "type": "object",
820
+ "additionalProperties": false
821
+ },
793
822
  "EnumMemberCase": {
794
823
  "description": "Supported cases for TypeScript `enum` member names.",
795
824
  "oneOf": [
@@ -806,6 +835,52 @@
806
835
  { "description": "camelCase", "type": "string", "enum": ["camelCase"] }
807
836
  ]
808
837
  },
838
+ "FilenameCase": {
839
+ "description": "Supported cases for TypeScript `enum` member names.",
840
+ "oneOf": [
841
+ { "description": "camelCase", "type": "string", "enum": ["camelCase"] },
842
+ {
843
+ "description": "Match an export name",
844
+ "type": "string",
845
+ "enum": ["export"]
846
+ },
847
+ {
848
+ "description": "kebab-case",
849
+ "type": "string",
850
+ "enum": ["kebab-case"]
851
+ },
852
+ {
853
+ "description": "PascalCase",
854
+ "type": "string",
855
+ "enum": ["PascalCase"]
856
+ },
857
+ {
858
+ "description": "snake_case",
859
+ "type": "string",
860
+ "enum": ["snake_case"]
861
+ }
862
+ ]
863
+ },
864
+ "FilenameCases": {
865
+ "type": "array",
866
+ "items": { "$ref": "#/definitions/FilenameCase" },
867
+ "uniqueItems": true
868
+ },
869
+ "FilenamingConventionOptions": {
870
+ "description": "Rule's options.",
871
+ "type": "object",
872
+ "properties": {
873
+ "filenameCases": {
874
+ "description": "Allowed cases for _TypeScript_ `enum` member names.",
875
+ "allOf": [{ "$ref": "#/definitions/FilenameCases" }]
876
+ },
877
+ "strictCase": {
878
+ "description": "If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].",
879
+ "type": "boolean"
880
+ }
881
+ },
882
+ "additionalProperties": false
883
+ },
809
884
  "FilesConfiguration": {
810
885
  "description": "The configuration of the filesystem",
811
886
  "type": "object",
@@ -906,7 +981,7 @@
906
981
  "additionalProperties": false
907
982
  },
908
983
  "HooksOptions": {
909
- "description": "Options for the rule `useExhaustiveDependencies` and `useHookAtTopLevel`",
984
+ "description": "Options for the rule `useExhaustiveDependencies`",
910
985
  "type": "object",
911
986
  "required": ["hooks"],
912
987
  "properties": {
@@ -1185,36 +1260,36 @@
1185
1260
  "description": "It enables ALL rules for this group.",
1186
1261
  "type": ["boolean", "null"]
1187
1262
  },
1188
- "noAriaHiddenOnFocusable": {
1189
- "description": "Enforce that aria-hidden=\"true\" is not set on focusable elements.",
1263
+ "noDuplicateJsonKeys": {
1264
+ "description": "Disallow two keys with the same name inside a JSON object.",
1190
1265
  "anyOf": [
1191
1266
  { "$ref": "#/definitions/RuleConfiguration" },
1192
1267
  { "type": "null" }
1193
1268
  ]
1194
1269
  },
1195
- "noDefaultExport": {
1196
- "description": "Disallow default exports.",
1270
+ "noEmptyBlockStatements": {
1271
+ "description": "Disallow empty block statements and static blocks.",
1197
1272
  "anyOf": [
1198
1273
  { "$ref": "#/definitions/RuleConfiguration" },
1199
1274
  { "type": "null" }
1200
1275
  ]
1201
1276
  },
1202
- "noDuplicateJsonKeys": {
1203
- "description": "Disallow two keys with the same name inside a JSON object.",
1277
+ "noEmptyTypeParameters": {
1278
+ "description": "Disallow empty type parameters in type aliases and interfaces.",
1204
1279
  "anyOf": [
1205
1280
  { "$ref": "#/definitions/RuleConfiguration" },
1206
1281
  { "type": "null" }
1207
1282
  ]
1208
1283
  },
1209
- "noEmptyBlockStatements": {
1210
- "description": "Disallow empty block statements and static blocks.",
1284
+ "noGlobalAssign": {
1285
+ "description": "Disallow assignments to native objects and read-only global variables.",
1211
1286
  "anyOf": [
1212
1287
  { "$ref": "#/definitions/RuleConfiguration" },
1213
1288
  { "type": "null" }
1214
1289
  ]
1215
1290
  },
1216
- "noImplicitAnyLet": {
1217
- "description": "Disallow use of implicit any type on variable declarations.",
1291
+ "noGlobalEval": {
1292
+ "description": "Disallow the use of global eval().",
1218
1293
  "anyOf": [
1219
1294
  { "$ref": "#/definitions/RuleConfiguration" },
1220
1295
  { "type": "null" }
@@ -1235,7 +1310,14 @@
1235
1310
  ]
1236
1311
  },
1237
1312
  "noNodejsModules": {
1238
- "description": "Forbid the use of Node.js builtin modules. Can be useful for client-side web projects that do not have access to those modules.",
1313
+ "description": "Forbid the use of Node.js builtin modules.",
1314
+ "anyOf": [
1315
+ { "$ref": "#/definitions/RuleConfiguration" },
1316
+ { "type": "null" }
1317
+ ]
1318
+ },
1319
+ "noThenProperty": {
1320
+ "description": "Disallow then property.",
1239
1321
  "anyOf": [
1240
1322
  { "$ref": "#/definitions/RuleConfiguration" },
1241
1323
  { "type": "null" }
@@ -1287,6 +1369,13 @@
1287
1369
  { "type": "null" }
1288
1370
  ]
1289
1371
  },
1372
+ "useFilenamingConvention": {
1373
+ "description": "Enforce naming conventions for JavaScript and TypeScript filenames.",
1374
+ "anyOf": [
1375
+ { "$ref": "#/definitions/RuleConfiguration" },
1376
+ { "type": "null" }
1377
+ ]
1378
+ },
1290
1379
  "useForOf": {
1291
1380
  "description": "This rule recommends a for-of loop when in a for loop, the index used to extract an item from the iterated array.",
1292
1381
  "anyOf": [
@@ -1308,29 +1397,29 @@
1308
1397
  { "type": "null" }
1309
1398
  ]
1310
1399
  },
1311
- "useNodeImportProtocol": {
1312
- "description": "Enforces using the node: protocol for Node.js builtin modules.",
1400
+ "useImportType": {
1401
+ "description": "Promotes the use of import type for types.",
1313
1402
  "anyOf": [
1314
1403
  { "$ref": "#/definitions/RuleConfiguration" },
1315
1404
  { "type": "null" }
1316
1405
  ]
1317
1406
  },
1318
- "useRegexLiterals": {
1319
- "description": "Enforce the use of the regular expression literals instead of the RegExp constructor if possible.",
1407
+ "useNodejsImportProtocol": {
1408
+ "description": "Enforces using the node: protocol for Node.js builtin modules.",
1320
1409
  "anyOf": [
1321
1410
  { "$ref": "#/definitions/RuleConfiguration" },
1322
1411
  { "type": "null" }
1323
1412
  ]
1324
1413
  },
1325
- "useShorthandFunctionType": {
1326
- "description": "Enforce using function types instead of object type with call signatures.",
1414
+ "useNumberNamespace": {
1415
+ "description": "Use the Number properties instead of global ones.",
1327
1416
  "anyOf": [
1328
1417
  { "$ref": "#/definitions/RuleConfiguration" },
1329
1418
  { "type": "null" }
1330
1419
  ]
1331
1420
  },
1332
- "useValidAriaRole": {
1333
- "description": "Elements with ARIA roles must use a valid, non-abstract ARIA role.",
1421
+ "useShorthandFunctionType": {
1422
+ "description": "Enforce using function types instead of object type with call signatures.",
1334
1423
  "anyOf": [
1335
1424
  { "$ref": "#/definitions/RuleConfiguration" },
1336
1425
  { "type": "null" }
@@ -1522,9 +1611,17 @@
1522
1611
  "allOf": [{ "$ref": "#/definitions/ComplexityOptions" }]
1523
1612
  },
1524
1613
  {
1525
- "description": "Options for `useExhaustiveDependencies` and `useHookAtTopLevel` rule",
1614
+ "description": "Options for `useFilenamingConvention` rule",
1615
+ "allOf": [{ "$ref": "#/definitions/FilenamingConventionOptions" }]
1616
+ },
1617
+ {
1618
+ "description": "Options for `useExhaustiveDependencies` rule",
1526
1619
  "allOf": [{ "$ref": "#/definitions/HooksOptions" }]
1527
1620
  },
1621
+ {
1622
+ "description": "Deprecated options for `useHookAtTopLevel` rule",
1623
+ "allOf": [{ "$ref": "#/definitions/DeprecatedHooksOptions" }]
1624
+ },
1528
1625
  {
1529
1626
  "description": "Options for `useNamingConvention` rule",
1530
1627
  "allOf": [{ "$ref": "#/definitions/NamingConventionOptions" }]
@@ -1671,6 +1768,13 @@
1671
1768
  { "type": "null" }
1672
1769
  ]
1673
1770
  },
1771
+ "noDefaultExport": {
1772
+ "description": "Disallow default exports.",
1773
+ "anyOf": [
1774
+ { "$ref": "#/definitions/RuleConfiguration" },
1775
+ { "type": "null" }
1776
+ ]
1777
+ },
1674
1778
  "noImplicitBoolean": {
1675
1779
  "description": "Disallow implicit true values on JSX boolean attributes",
1676
1780
  "anyOf": [
@@ -1780,6 +1884,13 @@
1780
1884
  { "type": "null" }
1781
1885
  ]
1782
1886
  },
1887
+ "useConsistentArrayType": {
1888
+ "description": "Require consistently using either T[] or Array<T>",
1889
+ "anyOf": [
1890
+ { "$ref": "#/definitions/RuleConfiguration" },
1891
+ { "type": "null" }
1892
+ ]
1893
+ },
1783
1894
  "useConst": {
1784
1895
  "description": "Require const declarations for variables that are never reassigned after declared.",
1785
1896
  "anyOf": [
@@ -2084,6 +2195,13 @@
2084
2195
  { "type": "null" }
2085
2196
  ]
2086
2197
  },
2198
+ "noImplicitAnyLet": {
2199
+ "description": "Disallow use of implicit any type on variable declarations.",
2200
+ "anyOf": [
2201
+ { "$ref": "#/definitions/RuleConfiguration" },
2202
+ { "type": "null" }
2203
+ ]
2204
+ },
2087
2205
  "noImportAssign": {
2088
2206
  "description": "Disallow assigning to imported bindings",
2089
2207
  "anyOf": [
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/biome","version":"1.4.1-nightly.efc084c","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.4.1-nightly.efc084c","@biomejs/cli-win32-arm64":"1.4.1-nightly.efc084c","@biomejs/cli-darwin-x64":"1.4.1-nightly.efc084c","@biomejs/cli-darwin-arm64":"1.4.1-nightly.efc084c","@biomejs/cli-linux-x64":"1.4.1-nightly.efc084c","@biomejs/cli-linux-arm64":"1.4.1-nightly.efc084c","@biomejs/cli-linux-x64-musl":"1.4.1-nightly.efc084c","@biomejs/cli-linux-arm64-musl":"1.4.1-nightly.efc084c"}}
1
+ {"name":"@biomejs/biome","version":"1.5.0","bin":"bin/biome","scripts":{"postinstall":"node scripts/postinstall.js"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"packages/@biomejs/biome"},"author":"Emanuele Stoppa","license":"MIT OR Apache-2.0","bugs":"https://github.com/biomejs/biome/issues","description":"Biome is a toolchain for the web: formatter, linter and more","files":["bin/biome","scripts/postinstall.js","configuration_schema.json","README.md","LICENSE-APACHE","LICENSE-MIT","ROME-LICENSE-MIT"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"funding":{"type":"opencollective","url":"https://opencollective.com/biome"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.5.0","@biomejs/cli-win32-arm64":"1.5.0","@biomejs/cli-darwin-x64":"1.5.0","@biomejs/cli-darwin-arm64":"1.5.0","@biomejs/cli-linux-x64":"1.5.0","@biomejs/cli-linux-arm64":"1.5.0","@biomejs/cli-linux-x64-musl":"1.5.0","@biomejs/cli-linux-arm64-musl":"1.5.0"}}