Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改commitlint的ignores配置,拆分vite.config.ts,提高项目的可维护性和灵活性 #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Kassell
Copy link

@Kassell Kassell commented May 16, 2024

1、修改commitlint的ignores配置
修改 commitlint的ignores配置时,使用includes匹配会导致后续部分提交 xxx init 就会跳过commitlint,替换成全等判断,防止误输入init并直接执行git
commit 提交不符合commitlint规范的提交记录

2、拆分vite.config.ts,提高项目的可维护性和灵活性
将庞大的配置文件拆分成多个小文件,每个文件负责一部分配置,可以显著提升代码的可读性和模块化程度,方便定位和管理特定部分的配置,而不必在单一的大文件中迷失

修改 commitlint的ignores配置时,使用includes匹配会导致后续部分提交 xxx init 就会跳过commitlint,替换成全等判断,防止误输入init并直接执行git
commit 提交不符合commitlint规范的提交记录
将庞大的配置文件拆分成多个小文件,每个文件负责一部分配置,可以显著提升代码的可读性和模块化程度,方便定位和管理特定部分的配置,而不必在单一的大文件中迷失
Copy link

vercel bot commented May 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hooks-admin ❌ Failed (Inspect) May 16, 2024 3:49am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant