// Copyright IBM Corp. and LoopBack contributors 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-package-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:'], }, };