Skip to content

Commit eba32be

Browse files
committed
chore: Add conventional commit configuration
1 parent 7243bfe commit eba32be

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

commitlint.config.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'type-enum': [
5+
2,
6+
'always',
7+
[
8+
'feat', // New feature
9+
'fix', // Bug fix
10+
'docs', // Documentation only
11+
'style', // Formatting, no code change
12+
'refactor', // Code change that neither fixes a bug nor adds a feature
13+
'perf', // Performance improvement
14+
'test', // Adding or updating tests
15+
'build', // Build system or external dependencies
16+
'ci', // CI configuration
17+
'chore', // Other changes that don't modify src or test files
18+
'revert', // Reverts a previous commit
19+
],
20+
],
21+
'scope-case': [2, 'always', 'lower-case'],
22+
'subject-case': [2, 'always', 'lower-case'],
23+
'subject-empty': [2, 'never'],
24+
'subject-full-stop': [2, 'never', '.'],
25+
'type-case': [2, 'always', 'lower-case'],
26+
'type-empty': [2, 'never'],
27+
},
28+
};

0 commit comments

Comments
 (0)