forked from loopbackio/loopback-next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commitlint.config.js
22 lines (21 loc) · 754 Bytes
/
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
// Copyright IBM Corp. 2017,2018. All Rights Reserved.
// Node module: loopback-next
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
const isCI = process.env.CI;
module.exports = {
extends: [
'@commitlint/config-conventional',
// https://github.com/marionebl/commitlint/pull/406
// '@commitlint/config-lerna-scopes',
'./bin/config-lerna-scopes',
],
rules: {
'header-max-length': [2, 'always', 100],
'body-leading-blank': [2, 'always'],
'footer-leading-blank': [0, 'always'],
// Only enforce the rule if CI flag is not set. This is useful for release
// commits to skip DCO
'signed-off-by': [isCI ? 0 : 2, 'always', 'Signed-off-by:'],
},
};