Chris Kay | 98b26e3 | 2020-12-09 16:52:03 +0000 | [diff] [blame] | 1 | /* eslint-env node */ |
2 | |||||
3 | "use strict"; | ||||
4 | |||||
5 | const config = require("./.cz.json"); | ||||
6 | |||||
7 | module.exports = { | ||||
8 | extends: ["@commitlint/config-conventional"], | ||||
9 | rules: { | ||||
10 | "header-max-length": [1, "always", config.maxHeaderWidth], /* Warning */ | ||||
11 | "body-max-line-length": [1, "always", config.maxLineWidth], /* Warning */ | ||||
12 | "signed-off-by": [2, "always", "Signed-off-by:"] /* Error */ | ||||
13 | } | ||||
14 | }; |