Skip to content

Commit a305f34

Browse files
committed
build: update commitlint configuration file
1 parent afb85de commit a305f34

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

commitlint.config.mjs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,17 @@
1818
*/
1919
const commitlintConfiguration = {
2020
extends: ['@commitlint/config-conventional'],
21+
rules: {
22+
'type-enum': [
23+
2,
24+
'always',
25+
['build', 'feat', 'fix', 'docs', 'style', 'refactor', 'test', 'chore', 'revert'],
26+
],
27+
'subject-max-length': [2, 'always', 72],
28+
'body-max-line-length': [2, 'always', 100],
29+
'footer-max-line-length': [2, 'always', 100],
30+
},
2131
};
2232

2333
// ━━ EXPORT MODULE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
24-
module.exports = commitlintConfiguration;
34+
export default commitlintConfiguration;

0 commit comments

Comments
 (0)