mirror of
https://github.com/teableio/teable
synced 2024-11-23 07:51:00 +00:00
40 lines
931 B
JavaScript
40 lines
931 B
JavaScript
module.exports = {
|
|
extends: ['@commitlint/config-conventional'],
|
|
rules: {
|
|
'body-leading-blank': [1, 'always'],
|
|
'body-max-line-length': [2, 'always', 100],
|
|
'footer-leading-blank': [1, 'always'],
|
|
'footer-max-line-length': [2, 'always', 100],
|
|
'header-max-length': [2, 'always', 100],
|
|
'scope-case': [2, 'always', 'lower-case'],
|
|
'subject-case': [
|
|
2,
|
|
'never',
|
|
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
|
|
],
|
|
'subject-empty': [2, 'never'],
|
|
'subject-full-stop': [2, 'never', '.'],
|
|
'type-case': [2, 'always', 'lower-case'],
|
|
'type-empty': [2, 'never'],
|
|
'type-enum': [
|
|
2,
|
|
'always',
|
|
[
|
|
'build',
|
|
'chore',
|
|
'ci',
|
|
'docs',
|
|
'feat',
|
|
'fix',
|
|
'perf',
|
|
'refactor',
|
|
'revert',
|
|
'style',
|
|
'test',
|
|
'translation',
|
|
'security',
|
|
],
|
|
],
|
|
},
|
|
};
|