Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .husky/commit-msg

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/pre-commit

This file was deleted.

6 changes: 4 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ my-first-nest/
| 后端 | NestJS 11, TypeORM, PostgreSQL, JWT, Passport, Socket.IO |
| 前端 | React 19, Vite, Tailwind CSS 4, Ant Design 5, Zustand, React Query |
| 文档 | VitePress |
| 代码质量 | ESLint, Prettier, Husky, lint-staged, commitlint |
| 代码质量 | ESLint, Prettier |

## 开发命令

Expand Down Expand Up @@ -116,7 +116,7 @@ cd apps/web && yarn test

## Git 规范

### Commit Message(commitlint 强制)
### Commit Message

```
<type>(<scope>): <subject>
Expand All @@ -129,6 +129,8 @@ refactor(api): extract shared HTTP client

type:`feat` / `fix` / `refactor` / `chore` / `style` / `docs` / `test`

本地不再通过 husky/commitlint 强制校验,依赖 Code Review 与仓库约定约束。

### PR

- 使用 `.github/PULL_REQUEST_TEMPLATE.md` 模板
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ modules/xxx/
- 统一的错误处理
- 规范的代码注释
- 使用 ESLint 和 Prettier 保持代码风格一致
- 使用 husky 和 commitlint 进行 commit 规范
- Commit 规范由 Code Review 与仓库约定约束

## 学习资源

Expand Down
1 change: 0 additions & 1 deletion apps/server/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"tests",
"dist",
"**/*spec.ts",
"commitlint.config.ts",
"client",
"docs"
]
Expand Down
38 changes: 0 additions & 38 deletions commitlint.config.ts

This file was deleted.

10 changes: 1 addition & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"docs:dev": "yarn workspace @my-first-nest/docs dev",
"docs:build": "yarn workspace @my-first-nest/docs build",
"docker:build:server": "docker build -f apps/server/Dockerfile -t my-first-nest-server .",
"docker:build:web": "docker build -f apps/web/Dockerfile -t my-first-nest-web .",
"prepare": "husky"
"docker:build:web": "docker build -f apps/web/Dockerfile -t my-first-nest-web ."
},
"repository": {
"type": "git",
Expand All @@ -48,8 +47,6 @@
"url": "https://github.com/fengzai6/my-first-nest/issues"
},
"devDependencies": {
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.39.1",
"@types/node": "^22.19.1",
Expand All @@ -58,16 +55,11 @@
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4",
"globals": "^16.5.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"prettier": "^3.6.2",
"prettier-plugin-tailwindcss": "^0.6.14",
"typescript": "^5.9.3",
"typescript-eslint": "^8.47.0"
},
"lint-staged": {
"*.{ts,tsx,vue}": "yarn lint"
},
"engines": {
"node": ">=20.19.5"
}
Expand Down
Loading