Files
dax-pay-h5/commitlint.config.cjs
bootx d9ed525e86 build(h5): 清理无用依赖与冗余构建配置
- 移除 vite-plugin-compression 及 compress.ts,删相关 env 与类型字段
- 移除 date-fns,vite.config 改用原生 nowStr 生成构建时间
- 修复 rollup-plugin-visualizer 的 ESM 默认导入 interop 问题
- commitlint 移除 cz-git 的 prompt 死配置
- 关闭 dev server 自动打开浏览器
2026-06-23 22:44:34 +08:00

37 lines
827 B
JavaScript

// commitlint 配置:仅保留提交规范校验,交互式 prompt 已随 cz-git 一并移除
/** @type {import('@commitlint/types').UserConfig} */
module.exports = {
ignores: [commit => commit.includes('init')],
extends: ['@commitlint/config-conventional'],
rules: {
'body-leading-blank': [2, 'always'],
'footer-leading-blank': [1, 'always'],
'header-max-length': [2, 'always', 108],
'subject-empty': [2, 'never'],
'type-empty': [2, 'never'],
'subject-case': [0],
'type-enum': [
2,
'always',
[
'feat',
'fix',
'perf',
'style',
'docs',
'test',
'refactor',
'build',
'ci',
'chore',
'revert',
'wip',
'workflow',
'types',
'release',
],
],
},
}