Ai
31 Star 224 Fork 62

京东零售/drip-table

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
commitlint.config.js 882 Bytes
一键复制 编辑 原始数据 按行查看 历史
茗伊 提交于 2022-12-10 15:25 +08:00 . build: allows at in commit message for release notes
module.exports = {
extends: [
'@commitlint/config-conventional',
],
rules: {
'type-enum': [2, 'always', [
'build',
'ci',
'chore',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
'release',
]],
'invalid-subject-chars': [2, 'always'],
},
ignores: [
message => message.startsWith('Publish\n'),
],
plugins: [
{
rules: {
'invalid-subject-chars': (data) => {
if (typeof data.subject === 'string') {
const invalidChars = data.subject.match(/[^a-zA-Z0-9,.'"\-_ /\\#():@]/gu);
if (invalidChars && invalidChars.length > 0) {
return [false, `Subject contains invalid characters: ${invalidChars.join('')}`];
}
}
return [true, null];
},
},
},
],
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jd-platform-opensource/drip-table.git
git@gitee.com:jd-platform-opensource/drip-table.git
jd-platform-opensource
drip-table
drip-table
master

搜索帮助