修改commitlint的ignores配置,拆分vite.config.ts,提高项目的可维护性和灵活性 #46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1、修改commitlint的ignores配置
修改 commitlint的ignores配置时,使用includes匹配会导致后续部分提交 xxx init 就会跳过commitlint,替换成全等判断,防止误输入init并直接执行git
commit 提交不符合commitlint规范的提交记录
2、拆分vite.config.ts,提高项目的可维护性和灵活性
将庞大的配置文件拆分成多个小文件,每个文件负责一部分配置,可以显著提升代码的可读性和模块化程度,方便定位和管理特定部分的配置,而不必在单一的大文件中迷失