Skip to content

Commit ea03a12

Browse files
committed
docs: integrate type-check default into option description
1 parent 70af034 commit ea03a12

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

‎website/docs/en/guide/cli/check.mdx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@ This runs `rs lint --fix` to apply available lint fixes. If linting and any enab
3838

3939
### `--type-check`
4040

41-
Enable TypeScript type checking as part of linting:
41+
By default, `rs check` checks only lint and formatting issues. Add `--type-check` to also check TypeScript types during linting:
4242

4343
```bash
4444
rs check --type-check
4545
```
4646

47-
Type checking is disabled by default.
48-
4947
### `-h, --help`
5048

5149
Display usage and option information without running checks:

‎website/docs/zh/guide/cli/check.mdx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@ rs check --fix
3838

3939
### `--type-check`
4040

41-
在 lint 过程中启用 TypeScript 类型检查:
41+
默认情况下,`rs check` 只检查 lint 和格式问题。添加 `--type-check` 可在 lint 过程中同时检查 TypeScript 类型:
4242

4343
```bash
4444
rs check --type-check
4545
```
4646

47-
默认不启用类型检查。
48-
4947
### `-h, --help`
5048

5149
显示命令用法和选项信息,但不运行检查:

0 commit comments

Comments
 (0)