File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33The ` rs staged ` command uses [ lint-staged] ( https://github.com/lint-staged/lint-staged ) to run tasks against files staged in Git.
44
5- A common use case is to run linters, formatters, or other checks on staged files before committing code.
5+ ` rs staged ` can run linters, formatters, or other checks on staged files before committing code.
6+
7+ A common pattern is to pair ` rs staged ` with [ ` rs setup ` ] ( ./setup ) and run staged-file tasks from a ` pre-commit ` hook.
68
79## Usage
810
Original file line number Diff line number Diff line change 22
33` rs staged ` 命令使用 [ lint-staged] ( https://github.com/lint-staged/lint-staged ) 对 Git 暂存文件运行任务。
44
5- 常见的使用场景是在提交代码前,对暂存文件运行 linter、格式化工具或其他检查。
5+ ` rs staged ` 可用于在提交代码前,对暂存文件运行 linter、格式化工具或其他检查。
6+
7+ 常见做法是将 ` rs staged ` 与 [ ` rs setup ` ] ( ./setup ) 配合使用,通过 ` pre-commit ` hook 运行暂存文件任务。
68
79## 用法 \{ #usage}
810
You can’t perform that action at this time.
0 commit comments