Skip to content

Commit 0a170d6

Browse files
committed
docs: fix fmt performance benefit count
1 parent 1ab66e3 commit 0a170d6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎website/docs/en/guide/formatting.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: 'Format files with Rstack CLI using Prettier-compatible options, pl
66

77
import { PackageManagerTabs } from '@rspress/core/theme';
88

9-
Rstack CLI includes a formatter built on [Prettier](https://prettier.io/). Compared with running Prettier directly, `rs fmt` offers better performance in two ways:
9+
Rstack CLI includes a formatter built on [Prettier](https://prettier.io/). Compared with running Prettier directly, `rs fmt` offers better performance in three ways:
1010

1111
- **Parallel formatting**: Files are formatted concurrently in a worker pool.
1212
- **SWC Next parser**: The high-performance [SWC Next](https://www.npmjs.com/package/@swc-next/parser) parser is used by default for JavaScript, JSX, and TypeScript files.

‎website/docs/zh/guide/formatting.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: '使用 Rstack CLI 格式化文件,支持与 Prettier 兼容的
66

77
import { PackageManagerTabs } from '@rspress/core/theme';
88

9-
Rstack CLI 提供了基于 [Prettier](https://prettier.io/) 的格式化工具。相比直接使用 Prettier,`rs fmt` 的性能更好,主要得益于以下两点:
9+
Rstack CLI 提供了基于 [Prettier](https://prettier.io/) 的格式化工具。相比直接使用 Prettier,`rs fmt` 的性能更好,主要得益于以下三点:
1010

1111
- **并行格式化**:通过 worker 池并行格式化文件。
1212
- **SWC Next 解析器**:默认使用高性能的 [SWC Next](https://www.npmjs.com/package/@swc-next/parser) 解析器处理 JavaScript、JSX 和 TypeScript 文件。

0 commit comments

Comments
 (0)