-
Notifications
You must be signed in to change notification settings - Fork 0
/
commitlint.config.app.ts
35 lines (32 loc) · 927 Bytes
/
commitlint.config.app.ts
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
/**
* @license
* Copyright MessiInter and contributors All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE.md file at https://github.com/MessiInter/qr-code-gen/blob/master/LICENSE.md
*/
/**
* @fileoverview
* This file exports configuration to lint commit messages.
*/
import type {UserConfig} from '@commitlint/types';
export default <UserConfig>{
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
['Add', 'Add/update', 'Remove', 'Update', 'Docs'],
],
'type-case': [0],
'type-empty': [0],
'subject-empty': [0],
'scope-case': [2, 'always', 'kebab-case'],
'scope-empty': [2, 'always'],
'body-leading-blank': [2, 'always'],
'header-max-length': [0],
'body-max-length': [0],
'footer-leading-blank': [2, 'always'],
'footer-max-length': [0],
},
};