Socket
Socket
Sign inDemoInstall

@biomejs/biome

Package Overview
Dependencies
8
Maintainers
4
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.1-nightly.bc772a3 to 1.4.1-nightly.d869a33

README.ja.md

2

package.json

@@ -1,1 +0,1 @@

{"name":"@biomejs/biome","version":"1.4.1-nightly.bc772a3","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.bc772a3","@biomejs/cli-win32-arm64":"1.4.1-nightly.bc772a3","@biomejs/cli-darwin-x64":"1.4.1-nightly.bc772a3","@biomejs/cli-darwin-arm64":"1.4.1-nightly.bc772a3","@biomejs/cli-linux-x64":"1.4.1-nightly.bc772a3","@biomejs/cli-linux-arm64":"1.4.1-nightly.bc772a3"}}
{"name":"@biomejs/biome","version":"1.4.1-nightly.d869a33","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.d869a33","@biomejs/cli-win32-arm64":"1.4.1-nightly.d869a33","@biomejs/cli-darwin-x64":"1.4.1-nightly.d869a33","@biomejs/cli-darwin-arm64":"1.4.1-nightly.d869a33","@biomejs/cli-linux-x64":"1.4.1-nightly.d869a33","@biomejs/cli-linux-arm64":"1.4.1-nightly.d869a33","@biomejs/cli-linux-x64-musl":"1.4.1-nightly.d869a33","@biomejs/cli-linux-arm64-musl":"1.4.1-nightly.d869a33"}}
<p align="center">
<img alt="Biome - Toolchain of the web"
src="https://raw.githubusercontent.com/biomejs/resources/main/biome-logo-slogan.svg"
width="400">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-dark-transparent.svg">
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-light-transparent.svg">
<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">
</picture>
</p>

@@ -26,3 +28,2 @@

</div>

@@ -32,3 +33,3 @@

English | [简体中文](https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/README.zh-CN.md)
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)

@@ -39,5 +40,5 @@ </div>

**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)**.
**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)**.
**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).
**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).
It **outputs detailed and contextualized diagnostics** that help you to improve your code and become a better programmer!

@@ -115,2 +116,5 @@

</td>
<td align="center" valign="middle">
<a href="https://nanabit.dev/" target="_blank"><img src="https://images.opencollective.com/nanabit/d15fd98/logo/256.png?height=80" width="80"></a>
</td>
</tr>

@@ -120,3 +124,2 @@ </tbody>

[bench]: https://github.com/biomejs/biome/blob/main/benchmark/README.md
[biomejs]: https://biomejs.dev/

@@ -123,0 +126,0 @@ [biome-philosophy]: https://biomejs.dev/internals/philosophy/

<p align="center">
<img alt="Biome - Toolchain of the web"
src="https://raw.githubusercontent.com/biomejs/resources/main/biome-logo-slogan.svg"
width="400">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-dark-transparent.svg">
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-light-transparent.svg">
<img alt="Biome - Toolchain of the web" src="https://raw.githubusercontent.com/biomejs/resources/main/svg/slogan-light-transparent.svg" width="700">
</picture>
</p>

@@ -26,3 +28,2 @@

</div>

@@ -32,15 +33,13 @@

[English](./README.md) | 简体中文
[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)
</div>
**Biome** 是一个用于网络项目的高性能工具链,旨在为开发者提供维护这些项目的工具。
**Biome** 是一个用于 Web 项目的高性能工具链,旨在为开发者提供维护项目的工具。
**Biome 是一个[快速的格式化器](./benchmark#formatting)**,适用于 _JavaScript_、_TypeScript_、_JSX_ 和 _JSON_,与 _Prettier_ 的兼容性达到了 **[96%](https://console.algora.io/challenges/prettier)**。
**Biome 是一个[快速的格式化工具](./benchmark#formatting)**,适用于 _JavaScript_、_TypeScript_、_JSX_、_JSON_ 等,与 _Prettier_ 的兼容性达到了 **[97%](https://console.algora.io/challenges/prettier)**。
**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/)**。
它**输出详细且有上下文的诊断信息**,帮助你改进代码,成为一个更好的程序员!
**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/)**。它**输出详细且有上下文诊断信息**,能帮助你优化代码,成为一名更好的程序员!
**Biome** 从一开始就设计为[在编辑器中交互式使用](https://biomejs.dev/zh-cn/guides/integrate-in-editor/)。
你在编写代码时,它可以格式化和 lint 不规范的代码。
**Biome** 从一开始就设计为[在编辑器中交互式使用](https://biomejs.dev/zh-cn/guides/integrate-in-editor/)。它可以在你编写代码时格式化并检查出不规范的代码。

@@ -59,9 +58,9 @@ ### 安装

# lint 文件
# Lint 文件
npx @biomejs/biome lint ./src
# 运行格式化,lint 等,并应用安全的建议
# 运行格式化,Lint 等,并应用安全的建议
npx @biomejs/biome check --apply ./src
# 在 CI 环境中检查所有文件是否符合格式,lint 等
# 在 CI 环境中检查所有文件是否符合格式,Lint 等
npx @biomejs/biome ci ./src

@@ -74,6 +73,5 @@ ```

查看我们的[主页][biomejs]以了解更多关于 Biome 的信息,
或者直接前往[入门指南][getting-started]开始使用 Biome。
查看我们的[主页][biomejs]以了解更多关于 Biome 的信息,或者直接前往[入门指南][getting-started]开始使用 Biome。
## 更多关于 Biome
## 更多信息

@@ -84,3 +82,3 @@ **Biome** 有合理的默认设置,不需要配置。

**Biome** [不需要 Node.js](https://biomejs.dev/zh-cn/guides/manual-installation/)就可以运行。
**Biome** [不需要 Node.js](https://biomejs.dev/zh-cn/guides/manual-installation/) 就可以运行。

@@ -121,3 +119,2 @@ **Biome** 有一流的 LSP 支持,具有精密的解析器,可以完全保真地表示源文本,并具有顶级的错误恢复能力。

[bench]: https://github.com/biomejs/biome/blob/main/benchmark/README.md
[biomejs]: https://biomejs.dev/zh-cn/

@@ -124,0 +121,0 @@ [biome-philosophy]: https://biomejs.dev/zh-cn/internals/philosophy/

const { platform, arch } = process;
const { execSync } = require("child_process");
function isMusl() {
let stderr;
try {
stderr = execSync("ldd --version", {
stdio: ['pipe', 'pipe', 'pipe']
});
} catch (err) {
stderr = err.stderr;
}
if (stderr.indexOf("musl") > -1) {
return true;
}
return false;
}
const PLATFORMS = {

@@ -16,5 +32,13 @@ win32: {

},
"linux-musl": {
x64: "@biomejs/cli-linux-x64-musl/biome",
arm64: "@biomejs/cli-linux-arm64-musl/biome",
},
};
const binName = PLATFORMS?.[platform]?.[arch];
const binName =
platform === "linux" && isMusl()
? PLATFORMS?.["linux-musl"]?.[arch]
: PLATFORMS?.[platform]?.[arch];
if (binName) {

@@ -21,0 +45,0 @@ let binPath;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc