Skip to content

Commit da01657

Browse files
committed
chore: update commitlint configuration
1 parent be8def5 commit da01657

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

etc/commitlint/prompt/index.js

+12-12
Original file line numberDiff line numberDiff line change
@@ -39,27 +39,27 @@ config.questions[ 'type' ] = {
3939
'description': 'Select the type of change that you\'re committing',
4040
'enum': {
4141
'feat': {
42-
'description': 'A new feature',
42+
'description': 'New feature',
4343
'title': 'Features',
4444
'emoji': '✨'
4545
},
4646
'fix': {
47-
'description': 'A bug fix, including changes to the behavior of existing features and including changes that remove or mitigate security vulnerabilities',
47+
'description': 'Bug fix, including changes to the behavior of existing features and including changes that remove or mitigate security vulnerabilities',
4848
'title': 'Bug Fixes',
4949
'emoji': '🐛'
5050
},
5151
'remove': {
52-
'description': 'A change that removes a feature',
52+
'description': 'Remove feature',
5353
'title': 'Removed Features',
5454
'emoji': '🗑'
5555
},
5656
'deprecate': {
57-
'description': 'A change that deprecates an existing feature',
57+
'description': 'Deprecate feature',
5858
'title': 'Deprecations',
5959
'emoji': '⚠️'
6060
},
6161
'perf': {
62-
'description': 'A change that improves performance',
62+
'description': 'Improve performance',
6363
'title': 'Performance Improvements',
6464
'emoji': '🚀'
6565
},
@@ -69,7 +69,7 @@ config.questions[ 'type' ] = {
6969
'emoji': '📚'
7070
},
7171
'test': {
72-
'description': 'Test-only change (e.g., adding missing tests or correcting existing tests)',
72+
'description': 'Test-only change, including adding missing tests or correcting existing tests',
7373
'title': 'Tests',
7474
'emoji': '🚨'
7575
},
@@ -79,32 +79,32 @@ config.questions[ 'type' ] = {
7979
'emoji': '⏱'
8080
},
8181
'build': {
82-
'description': 'A change affecting how the project is built and released, including changes to automation and CI configuration files and scripts',
82+
'description': 'Update how the project is built and released, including changes to automation and CI configuration files and scripts',
8383
'title': 'Build Changes',
8484
'emoji': '🛠'
8585
},
8686
'refactor': {
87-
'description': 'A change that is neither a fix nor a feature (i.e., a change which does not affect behavior as experienced by downstream consumers',
87+
'description': 'Neither a fix nor a feature (i.e., a change which does not affect behavior as experienced by downstream consumers',
8888
'title': 'Code Refactoring',
8989
'emoji': '🚧'
9090
},
9191
'style': {
92-
'description': 'A change that improves code style (e.g., whitespace, formatting, semilcolons, etc) and does not affect the meaning of code',
92+
'description': 'Improve code style, including changes to whitespace, formatting, semicolons, etc, which do not affect the meaning of code',
9393
'title': 'Style Updates',
9494
'emoji': '💎'
9595
},
9696
'chore': {
97-
'description': 'A change that is neither a fix, a feature, nor a refactor (i.e., a repetitive mechanical task, such as updating package meta data or updating external dependencies)',
97+
'description': 'Neither a fix, a feature, nor a refactor (i.e., a repetitive mechanical task, such as updating package meta data or updating external dependencies)',
9898
'title': 'Chores',
9999
'emoji': '🧺'
100100
},
101101
'temp': {
102-
'description': 'A temporary, experimental, or exploratory change that is not intended to be permanent (e.g., as may be desired when debugging CI or when ad-hoc debugging on live systems)',
102+
'description': 'Temporary, experimental, or exploratory change that is not intended to be permanent (e.g., as may be desired when debugging CI or when ad-hoc debugging on live systems)',
103103
'title': 'Temporary Changes',
104104
'emoji': '💡'
105105
},
106106
'revert': {
107-
'description': 'Reverts a previous commit',
107+
'description': 'Revert previous commit',
108108
'title': 'Reverted Changes',
109109
'emoji': '♻️'
110110
}

etc/commitlint/rules/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ rules[ 'body-max-line-length' ] = [ 1, 'always', 72 ];
8080
* @memberof rules
8181
* @type {Array}
8282
*/
83-
rules[ 'body-min-length' ] = [ 2, 'always', 20 ];
83+
rules[ 'body-min-length' ] = [ 0, 'always', 20 ]; // NOTE: disabled due to commitzen not respecting the rule allowing the commit message body to be empty
8484

8585
/**
8686
* Allow the commit message body to be in any case.

0 commit comments

Comments
 (0)