1 | // Copyright IBM Corp. 2017,2021. All Rights Reserved.
|
2 | // Node module: loopback-datasource-juggler
|
3 | // This file is licensed under the MIT License.
|
4 | // License text available at https://opensource.org/licenses/MIT
|
5 |
|
6 | ;
|
7 |
|
8 | const isCI = process.env.CI;
|
9 | module.exports = {
|
10 | extends: [
|
11 | '@commitlint/config-conventional',
|
12 | ],
|
13 | rules: {
|
14 | 'header-max-length': [2, 'always', 100],
|
15 | 'body-leading-blank': [2, 'always'],
|
16 | 'footer-leading-blank': [0, 'always'],
|
17 | // Only enforce the rule if CI flag is not set. This is useful for release
|
18 | // commits to skip DCO
|
19 | 'signed-off-by': [isCI ? 0 : 2, 'always', 'Signed-off-by:'],
|
20 | },
|
21 | };
|