@biomejs/biome 2.5.14 → 2.6.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.zh-TW.md CHANGED
@@ -1,18 +1,19 @@
1
1
  <div align="center">
2
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">
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
6
  </picture>
7
+ </div>
7
8
 
8
9
  <br>
9
10
  <br>
10
11
 
11
- [![CI on main][ci-badge]][ci-url]
12
- [![Discord chat][discord-badge]][discord-url]
13
- [![npm version][npm-badge]][npm-url]
14
- [![VSCode version][vscode-badge]][vscode-url]
15
- [![Open VSX version][open-vsx-badge]][open-vsx-url]
12
+ [![CI on main][ci-badge]][ci-url]
13
+ [![Discord chat][discord-badge]][discord-url]
14
+ [![npm version][npm-badge]][npm-url]
15
+ [![VSCode version][vscode-badge]][vscode-url]
16
+ [![Open VSX version][open-vsx-badge]][open-vsx-url]
16
17
 
17
18
  [ci-badge]: https://github.com/biomejs/biome/actions/workflows/main.yml/badge.svg
18
19
  [ci-url]: https://github.com/biomejs/biome/actions/workflows/main.yml
@@ -20,25 +21,23 @@
20
21
  [discord-url]: https://biomejs.dev/chat
21
22
  [npm-badge]: https://npmx.dev/api/registry/badge/version/@biomejs/biome?color=60a5fa&style=shieldsio&label=%40biomejs%2Fbiome
22
23
  [npm-url]: https://npmx.dev/package/@biomejs/biome
23
- [vscode-badge]: https://img.shields.io/visual-studio-marketplace/v/biomejs.biome?label=Visual%20Studio%20Marketplace&labelColor=374151&color=60a5fa
24
+ [vscode-badge]: https://badgen.net/vs-marketplace/v/biomejs.biome?label=Visual%20Studio%20Marketplace&icon=visualstudio&labelColor=374151&color=60a5fa
24
25
  [vscode-url]: https://marketplace.visualstudio.com/items?itemName=biomejs.biome
25
- [open-vsx-badge]: https://img.shields.io/visual-studio-marketplace/v/biomejs.biome?label=Open%20VSX%20Registry&logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2aWV3Qm94PSI0LjYgNSA5Ni4yIDEyMi43IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxwYXRoIGQ9Ik0zMCA0NC4yTDUyLjYgNUg3LjN6TTQuNiA4OC41aDQ1LjNMMjcuMiA0OS40em01MSAwbDIyLjYgMzkuMiAyMi42LTM5LjJ6IiBmaWxsPSIjYzE2MGVmIi8+CiAgPHBhdGggZD0iTTUyLjYgNUwzMCA0NC4yaDQ1LjJ6TTI3LjIgNDkuNGwyMi43IDM5LjEgMjIuNi0zOS4xem01MSAwTDU1LjYgODguNWg0NS4yeiIgZmlsbD0iI2E2MGVlNSIvPgo8L3N2Zz4=&labelColor=374151&color=60a5fa
26
+ [open-vsx-badge]: https://badgen.net/open-vsx/v/biomejs/biome?label=Open%20VSX%20Registry&icon=data:image/svg%2Bxml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2aWV3Qm94PSI0LjYgNSA5Ni4yIDEyMi43IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxwYXRoIGQ9Ik0zMCA0NC4yTDUyLjYgNUg3LjN6TTQuNiA4OC41aDQ1LjNMMjcuMiA0OS40em01MSAwbDIyLjYgMzkuMiAyMi42LTM5LjJ6IiBmaWxsPSIjYzE2MGVmIi8%2BCiAgPHBhdGggZD0iTTUyLjYgNUwzMCA0NC4yaDQ1LjJ6TTI3LjIgNDkuNGwyMi43IDM5LjEgMjIuNi0zOS4xem01MSAwTDU1LjYgODguNWg0NS4yeiIgZmlsbD0iI2E2MGVlNSIvPgo8L3N2Zz4=&labelColor=374151&color=60a5fa
26
27
  [open-vsx-url]: https://open-vsx.org/extension/biomejs/biome
27
28
 
28
29
  <!-- Insert new entries lexicographically by language code.
29
30
  For example given below is the same order as these files appear on page:
30
31
  https://github.com/biomejs/biome/tree/main/packages/@biomejs/biome -->
31
32
 
32
- [हिन्दी](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.hi.md) | [English](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.md) | [Español](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.es.md) | [Français](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.fr.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) | [Polski](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.pl.md) | [Português do Brasil](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.pt-BR.md) | [한국어](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.kr.md) | [Русский](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.ru.md) | [Українська](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.uk.md)
33
- </div>
34
-
33
+ [हिन्दी](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.hi.md) | [English](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.md) | [Español](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.es.md) | [Français](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.fr.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) | [Polski](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.pl.md) | [Português do Brasil](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.pt-BR.md) | [한국어](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.kr.md) | [Русский](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.ru.md) | [Українська](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.uk.md)
35
34
  <br>
36
35
 
37
36
  **Biome** 是一個高效能的 Web 專案工具鏈,旨在提供開發工具以維持這些專案的健康。
38
37
 
39
- **Biome 是一個 [快速格式化工具](https://github.com/biomejs/benchmark#formatting)**,支援 _JavaScript_、_TypeScript_、_JSX_、_JSON_、_CSS_ 和 _GraphQL_,其 **與 _Prettier_ 的相容性達到 [97%](https://algora.io/challenges/prettier)**。
38
+ **Biome 是一個 [快速格式化工具](https://github.com/biomejs/benchmark#formatting)**,支援 _JavaScript_、_TypeScript_、_JSX_、_JSON_、_CSS_、_GraphQL_、_Markdown_、_YAML_ 和 _SCSS_,其 **與 _Prettier_ 的相容性達到 [97%](https://algora.io/challenges/prettier)**。
40
39
 
41
- **Biome 是一個 [高效能的語法檢查工具](https://github.com/biomejs/benchmark#linting)**,支援 _JavaScript_、_TypeScript_、_JSX_、_CSS_ 和 _GraphQL_,擁有來自 ESLint、typescript-eslint 和 [其他來源](https://github.com/biomejs/biome/discussions/3)的 **[超過 500 條規則](https://biomejs.dev/linter/javascript/rules)**。
40
+ **Biome 是一個 [高效能的語法檢查工具](https://github.com/biomejs/benchmark#linting)**,支援 _JavaScript_、_TypeScript_、_JSX_、_CSS_、_GraphQL_、_Markdown_、_YAML_ 和 _SCSS_,擁有來自 ESLint、typescript-eslint 和 [其他來源](https://github.com/biomejs/biome/discussions/3)的 **[超過 500 條規則](https://biomejs.dev/linter/javascript/rules)**。
42
41
  它 **輸出詳細且具上下文的診斷資訊**,幫助你改進程式碼並成為更好的程式設計師!
43
42
 
44
43
  **Biome** 從一開始就設計為可在 [編輯器中互動使用](https://biomejs.dev/editors/first-party-extensions/)。
@@ -125,11 +124,11 @@ Biome 提供了一個簡單的贊助計劃,允許公司在各種開發者中
125
124
  <tbody>
126
125
  <tr>
127
126
  <td align="center" valign="middle">
128
- <a href="https://codspeed.io/?utm_source=biome&utm_medium=readme" target="_blank">
127
+ <a href="https://codspeed.io/?utm_source=oss-sponsorship&utm_medium=biome" target="_blank">
129
128
  <picture>
130
- <source media="(prefers-color-scheme: light)" srcset="https://biomejs.dev/_astro/codspeed-logo-light.NPF02X9E.svg" />
131
- <source media="(prefers-color-scheme: dark)" srcset="https://biomejs.dev/_astro/codspeed-logo-dark.DqfyMRf2.svg" />
132
- <img src="https://biomejs.dev/_astro/codspeed-logo-light.NPF02X9E.svg" width="300" alt="CodSpeed logo" />
129
+ <source media="(prefers-color-scheme: dark)" srcset="https://codspeed.io/codspeed-logo-dark.svg">
130
+ <source media="(prefers-color-scheme: light)" srcset="https://codspeed.io/codspeed-logo-light.svg">
131
+ <img alt="CodSpeed logo" src="https://codspeed.io/codspeed-logo-light.svg" width="300">
133
132
  </picture>
134
133
  </a>
135
134
  </td>
@@ -145,9 +144,6 @@ Biome 提供了一個簡單的贊助計劃,允許公司在各種開發者中
145
144
  <td align="center" valign="middle">
146
145
  <a href="https://lokalise.com/?utm_source=biome&utm_medium=readme" target="_blank"><img src="https://avatars.githubusercontent.com/u/14294501?s=200&v=4" height="100" alt="Lokalise logo"></a>
147
146
  </td>
148
- <td align="center" valign="middle">
149
- <a href="https://latitude.so/?utm_source=biome&utm_medium=readme" target="_blank"><img src="https://avatars.githubusercontent.com/u/98949449?s=200&v=4" height="100" alt="Latitude logo"></a>
150
- </td>
151
147
  <td align="center" valign="middle">
152
148
  <a href="https://www.cloudflare.com/?utm_source=biome&utm_medium=readme" target="_blank"><img src="https://avatars.githubusercontent.com/u/314135?s=200&v=4" height="100" alt="Cloudflare logo"></a>
153
149
  </td>
@@ -160,21 +156,12 @@ Biome 提供了一個簡單的贊助計劃,允許公司在各種開發者中
160
156
  <table>
161
157
  <tbody>
162
158
  <tr>
163
- <td align="center" valign="middle">
164
- <a href="https://vital.io/?utm_source=biome&utm_medium=readme" target="_blank"><img src="https://avatars.githubusercontent.com/u/25357309?s=200" width="80" alt="Vital logo"></a>
165
- </td>
166
159
  <td align="center" valign="middle">
167
160
  <a href="https://coderabbit.ai/?utm_source=biome&utm_medium=readme" target="_blank"><img src="https://avatars.githubusercontent.com/u/132028505?s=200&v=4" width="80" alt="CodeRabbit logo"></a>
168
161
  </td>
169
- <td align="center" valign="middle">
170
- <a href="https://forge42.dev/?utm_source=biome&utm_medium=readme" target="_blank"><img src="https://avatars.githubusercontent.com/u/161314831?s=200&v=4" width="80" alt="Forge42 logo"></a>
171
- </td>
172
162
  <td align="center" valign="middle">
173
163
  <a href="http://rstudio.org/?utm_source=biome&utm_medium=readme" target="_blank"><img src="https://avatars.githubusercontent.com/u/513560?s=200&v=4" width="80" alt="RStudio logo"></a>
174
164
  </td>
175
- <td align="center" valign="middle">
176
- <a href="https://pennylane.com/?utm_source=biome&utm_medium=readme" target="_blank"><img src="https://avatars.githubusercontent.com/u/57875210?s=200&v=4" width="80" alt="Pennylane logo"></a>
177
- </td>
178
165
  <td align="center" valign="middle">
179
166
  <a href="https://jetbrains.com/?utm_source=biome&utm_medium=readme" target="_blank"><img src="https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.png" width="100" alt="JetBrains logo"></a>
180
167
  </td>
@@ -190,6 +177,9 @@ Biome 提供了一個簡單的贊助計劃,允許公司在各種開發者中
190
177
  <td align="center" valign="middle">
191
178
  <a href="https://kraken.tech/?utm_source=biome&utm_medium=readme" target="_blank"><img src="https://avatars.githubusercontent.com/u/105941848?s=200&v=4" width="80" alt="Kraken Tech logo"></a>
192
179
  </td>
180
+ <td align="center" valign="middle">
181
+ <a href="https://www.code4japan.org/en" target="_blank"><img src="https://avatars.githubusercontent.com/u/5137738?s=200&v=4" width="80" alt="Code for Japan logo"></a>
182
+ </td>
193
183
  </tr>
194
184
  </tbody>
195
185
  </table>
package/bin/biome CHANGED
@@ -34,6 +34,10 @@ const PLATFORMS = {
34
34
  x64: "@biomejs/cli-linux-x64-musl/biome",
35
35
  arm64: "@biomejs/cli-linux-arm64-musl/biome",
36
36
  },
37
+ android: {
38
+ x64: "@biomejs/cli-android-x64/biome",
39
+ arm64: "@biomejs/cli-android-arm64/biome",
40
+ },
37
41
  };
38
42
 
39
43
  const binPath = env.BIOME_BINARY ||
@@ -66,7 +70,15 @@ if (binPath) {
66
70
  throw result.error;
67
71
  }
68
72
 
69
- process.exitCode = result.status;
73
+ // We check `signal` instead of `status` because a child killed by a signal
74
+ // has a null `status`, which Node turns into exit code 0. The shell
75
+ // convention for that case is 128 + signal number.
76
+ if (result.signal) {
77
+ const signalNumber = require("os").constants.signals[result.signal];
78
+ process.exitCode = signalNumber ? 128 + signalNumber : 1;
79
+ } else {
80
+ process.exitCode = result.status;
81
+ }
70
82
  } else {
71
83
  console.error(
72
84
  "The Biome CLI package doesn't ship with prebuilt binaries for your platform yet. " +