You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`rs staged`](https://rstack.rs/guide/cli/staged)| Run tasks on staged Git files |
27
28
28
29
Rstack CLI fits into your existing project workflow. It does not replace your runtime, package manager, or task runner, such as [pnpm](https://github.com/pnpm/pnpm), [Bun](https://github.com/oven-sh/bun), [Turborepo](https://github.com/vercel/turborepo), [Nx](https://github.com/nrwl/nx), and [Nub](https://github.com/nubjs/nub).
description: 'Run linting and formatting checks together, with optional TypeScript type checking.'
3
+
---
4
+
5
+
# check
6
+
7
+
The `rs check` command combines linting, formatting, and optional TypeScript type checking for the current project. By default, it runs [`rs lint`](./lint) followed by [`rs fmt --check`](./fmt#--check).
8
+
9
+
## Usage
10
+
11
+
```bash
12
+
rs check [options]
13
+
```
14
+
15
+
## Checks
16
+
17
+
Running `rs check` is equivalent to:
18
+
19
+
```bash
20
+
rs lint && rs fmt --check
21
+
```
22
+
23
+
Checks run sequentially. If linting fails, `rs check` stops without running the formatting check. The command exits successfully only when every enabled check passes.
24
+
25
+
## Options
26
+
27
+
### `--type-check`
28
+
29
+
Enable TypeScript type checking as part of linting:
30
+
31
+
```bash
32
+
rs check --type-check
33
+
```
34
+
35
+
This is equivalent to:
36
+
37
+
```bash
38
+
rs lint --type-check && rs fmt --check
39
+
```
40
+
41
+
Type checking is disabled when this option is omitted.
42
+
43
+
### `-h, --help`
44
+
45
+
Display usage and option information without running checks:
46
+
47
+
```bash
48
+
rs check --help
49
+
```
50
+
51
+
## Configuration
52
+
53
+
`rs check` has no separate `define.check()` configuration. It uses the linting configuration from [`define.lint()`](../configuration#define-lint) and the formatting configuration from [`define.fmt()`](../configuration#define-fmt).
Copy file name to clipboardExpand all lines: website/docs/en/guide/monorepo.mdx
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
---
2
+
description: 'Configure shared Rstack checks, formatting, staged tasks, and project workflows in a monorepo.'
3
+
---
4
+
1
5
# Monorepo
2
6
3
7
This guide explains how to use Rstack CLI in a monorepo, including how it works with task orchestrators such as [Turborepo](https://turborepo.com/docs) and [Nx](https://nx.dev/docs/getting-started/intro).
@@ -65,9 +69,9 @@ Expose these tasks through scripts in the root `package.json`:
0 commit comments