vben-admin-thin-next/commitlint.config.js

33 lines
653 B
JavaScript
Raw Normal View History

2020-09-28 20:19:10 +08:00
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'],
'type-enum': [
2,
'always',
[
'feat',
'fix',
'perf',
'style',
'docs',
'test',
'refactor',
'build',
'ci',
'chore',
'revert',
'wip',
'workflow',
2020-10-09 23:22:55 +08:00
'types',
2021-03-26 21:16:08 +08:00
'release',
2020-09-28 20:19:10 +08:00
],
],
},
};