Skip to content

Commit 21e25aa

Browse files
committed
misc(changelog): add commitlint config (for commitlintbot)
1 parent 63beebe commit 21e25aa

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

commitlint.config.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* @license Copyright 2017 Google Inc. All Rights Reserved.
3+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
4+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
5+
*/
6+
'use strict';
7+
8+
module.exports = {
9+
extends: ['cz'],
10+
rules: {
11+
'body-leading-blank': [1, 'always'],
12+
'body-tense': [1, 'always', ['present-imperative']],
13+
'footer-leading-blank': [1, 'always'],
14+
'footer-tense': [1, 'always', ['present-imperative']],
15+
'header-max-length': [2, 'always', 80],
16+
'lang': [0, 'always', 'eng'],
17+
'scope-case': [2, 'always', 'lowerCase'],
18+
'scope-empty': [0, 'never'],
19+
'subject-case': [1, 'always', 'lowerCase'],
20+
'subject-empty': [0, 'never'],
21+
'subject-full-stop': [2, 'never', '.'],
22+
'subject-tense': [1, 'always', ['present-imperative']],
23+
'type-case': [2, 'always', 'lowerCase'],
24+
'type-empty': [2, 'never'],
25+
// The scope-enum : defined in the cz-config
26+
// The 'type-enum': defined in the cz-config
27+
},
28+
};

0 commit comments

Comments
 (0)