forked from RaspberryPiFoundation/blockly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.mjs
More file actions
39 lines (37 loc) · 855 Bytes
/
commitlint.config.mjs
File metadata and controls
39 lines (37 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* Rules configuration for commitlint.
* https://commitlint.js.org/reference/rules.html#subject-full-stop
*
* Extends the conventional-commit spec at
* https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional
*/
export default {
extends: ['@commitlint/config-conventional'],
rules: {
// Warn if not in this list. Allow for judicious creativity.
'type-enum': [
1,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'refactor',
'release',
'revert',
'test',
],
],
'subject-case': [0],
},
helpUrl:
'https://developers.google.com/blockly/guides/contribute/get-started/commits',
};