-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
commitlint.config.js
45 lines (42 loc) · 1.27 KB
/
commitlint.config.js
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
39
40
41
42
43
44
45
import { components, functions } from '@stacksjs/utils'
import git from './config/git'
const scopes = [...new Set([...git.scopes, ...components, ...functions])]
/** @type {import('cz-git').UserConfig} */
export default {
rules: {
// @see: https://commitlint.js.org/#/reference-rules
'scope-enum': [2, 'always', scopes],
},
prompt: {
messages: git.messages,
types: git.types,
useEmoji: false,
themeColorCode: '',
scopes,
allowCustomScopes: true,
allowEmptyScopes: true,
customScopesAlign: 'bottom',
customScopesAlias: 'custom',
emptyScopesAlias: 'empty',
upperCaseSubject: false,
allowBreakingChanges: ['feat', 'fix'],
breaklineNumber: 100,
breaklineChar: '|',
skipQuestions: [],
issuePrefixes: [{ value: 'closed', name: 'closed: ISSUES has been processed' }],
customIssuePrefixesAlign: 'top',
emptyIssuePrefixesAlias: 'skip',
customIssuePrefixesAlias: 'custom',
allowCustomIssuePrefixes: true,
allowEmptyIssuePrefixes: true,
confirmColorize: true,
maxHeaderLength: Number.POSITIVE_INFINITY,
maxSubjectLength: Number.POSITIVE_INFINITY,
minSubjectLength: 0,
scopeOverrides: undefined,
defaultBody: '',
defaultIssues: '',
defaultScope: '',
defaultSubject: '',
},
}