0 Star 0 Fork 50

hxworm / drip-table

forked from 京东零售 / drip-table 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
commitlint.config.js 882 Bytes
一键复制 编辑 原始数据 按行查看 历史
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];
},
},
},
],
};
1
https://gitee.com/hxworm/drip-table.git
git@gitee.com:hxworm/drip-table.git
hxworm
drip-table
drip-table
master

搜索帮助