Unverified 提交 b888792e authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Add pre-commit checks to AGENTS.md (#2287)

Added pre-commit checks section with formatting, linting, and type-check commands. #skip-bb
上级 133836b6
......@@ -10,12 +10,31 @@ Make sure you run this once after doing `npm install` because it will make sure
npm run init-precommit
```
## Pre-commit checks
RUN THE FOLLOWING CHECKS before you do a commit.
**Formatting**
```sh
npm run prettier
```
**Linting**
```sh
npm run lint
```
If you get any lint errors, you can usually fix it by doing:
```sh
npm run lint:fix
```
***Type-checks**
```sh
npm run ts
```
Note: if you do this, then you will need to re-add the changes and commit again.
## Project context
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论