-
-
Notifications
You must be signed in to change notification settings - Fork 188
/
commitlint.config.cjs
19 lines (17 loc) · 878 Bytes
/
commitlint.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
* @see https://github.com/logto-io/logto/blob/master/commitlint.config.cjs
* @see https://github.com/search?q=path%3Acommitlint.config.cjs&type=code
*/
// const { rules } = require("@commitlint/config-conventional");
// const isCi = process.env.CI === "true";
/** @type {import('@commitlint/types').UserConfig} **/
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
// "type-enum": [2, "always", [...rules["type-enum"][2], "api", "release"]],
// 'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'experience', 'deps', 'deps-dev', 'cli', 'toolkit', 'cloud', 'app-insights']],
// Slightly increase the tolerance to allow the appending PR number
// ...(isCi && { "header-max-length": [2, "always", 110] }),
// "body-max-line-length": [2, "always", 110],
},
};