lighthouse/commitlint.config.js

28 строки
732 B
JavaScript

/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
module.exports = {
extends: ['cz'],
rules: {
'body-leading-blank': [1, 'always'],
'footer-leading-blank': [1, 'always'],
'header-max-length': [2, 'always', 80],
'scope-case': [2, 'always', 'lower-case'],
'scope-empty': [0, 'never'],
'subject-case': [
2,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
],
'subject-empty': [0, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
// The scope-enum : defined in the cz-config
// The 'type-enum': defined in the cz-config
},
};