forked from AgesEmpire/StellarSwipe-Backends
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
38 lines (38 loc) · 865 Bytes
/
Copy pathcommitlint.config.js
File metadata and controls
38 lines (38 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* Commitlint configuration.
*
* Enforces the Conventional Commits specification so that the commit history is
* machine-parseable for changelog generation and history scanning.
*
* Format: <type>(<optional scope>): <subject>
* Example: feat(trades): add bulkhead isolation for Horizon calls
*
* @see https://www.conventionalcommits.org/
*/
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
// Allowed commit types.
'type-enum': [
2,
'always',
[
'feat',
'fix',
'docs',
'style',
'refactor',
'perf',
'test',
'build',
'ci',
'chore',
'revert',
],
],
// Keep the header readable.
'header-max-length': [2, 'always', 100],
'subject-empty': [2, 'never'],
'type-empty': [2, 'never'],
},
};