mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-20 23:56:19 +08:00
27 lines
745 B
JavaScript
27 lines
745 B
JavaScript
module.exports = {
|
|
extends: [
|
|
'@commitlint/config-conventional',
|
|
],
|
|
rules: {
|
|
'header-max-length': [2, 'always', 72],
|
|
'type-enum': [
|
|
2,
|
|
'always',
|
|
[
|
|
'build', // build
|
|
'ci', // ci
|
|
'chore', // Other changes that don't modify src or test files.
|
|
'docs', // Adds or alters documentation.
|
|
'feat', // Adds a new feature.
|
|
'fix', // Solves a bug.
|
|
'perf', // Improves performance.
|
|
'refactor', // Rewrites code without feature, performance or bug changes.
|
|
'revert', // Reverts a previous commit.
|
|
'style', // Improves formatting, white-space.
|
|
'test', // Adds or modifies tests.
|
|
],
|
|
],
|
|
'scope-empty': [2, 'never'],
|
|
},
|
|
};
|