From b39e90770dc018f6a06efed1861904e2afe11bc0 Mon Sep 17 00:00:00 2001 From: K <1175047471@qq.com> Date: Tue, 27 Feb 2024 09:29:21 +0800 Subject: [PATCH] chore: change --- slides.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/slides.md b/slides.md index b356273..3739c24 100644 --- a/slides.md +++ b/slides.md @@ -347,19 +347,22 @@ layout: center --- -# 项目提交规范 +# 项目规范 项目使用 git hooks 强制约束代码规范与提交规范: -1. 项目用一个简单的正则来校验 Git Message +1. 使用 Eslint,不使用 Prettier + +2. 项目用一个简单的正则来约束 CommitLint ```ts const commitRE = /^(revert: )?(feat|fix|docs|style|refactor|perf|test|build|ci|chore|types|wip|release)(\(.+\))?: .{1,50}/ ``` -
-2. 使用 `type:check` 校验 TS 类型正确性 (执行时间会稍微有点长) +3. 移除了 Stylelint + +4. 使用 `type:check` 校验 TS 类型正确性 (执行时间会稍微有点长) --- layout: image-right