Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit c4518eb

Browse files
committed
style(git): Add valid conventional-commit types + descriptions. Add deploy & deps types.
1 parent 360932b commit c4518eb

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

commitlint.config.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,22 @@ module.exports = {
1212
'body-case': [0, 'always', 'lower-case'],
1313
// don't care about trailing full-stop.
1414
'subject-full-stop': [0, 'never', '.'],
15-
'header-full-stop': [0, 'never', '.']
15+
'header-full-stop': [0, 'never', '.'],
16+
// valid types + descriptions
17+
// feel free to add more types as necessary
18+
'type-enum': [2, 'always', [
19+
'build', // Changes that affect the build system
20+
'ci', // Changes to our CI configuration files and scripts.
21+
'docs', // Documentation only changes
22+
'feat', // A new feature
23+
'fix', // A bug fix
24+
'perf', // A code change that improves performance
25+
'refactor', // A code change that neither fixes a bug nor adds a feature
26+
'style', // Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
27+
'test', // Adding missing tests or correcting existing tests
28+
'revert', // git revert
29+
'deps', // Changes that affect external dependencies e.g. refreshing package-lock, updating deps.
30+
'deploy', // for gh-pages
31+
]],
1632
}
1733
}

0 commit comments

Comments
 (0)