0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/commitlint.config.js

15 lines
606 B
JavaScript
Raw Normal View History

2021-07-04 02:01:02 -05:00
const { rules } = require('@commitlint/config-conventional');
const isCi = process.env.CI === 'true';
2021-08-25 10:36:11 -05:00
/** @type {import('@commitlint/types').UserConfig} **/
2021-07-04 02:01:02 -05:00
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', [...rules['type-enum'][2], 'api', 'release']],
2022-12-14 12:50:29 -05:00
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'ui', 'deps','cli', 'toolkit']],
// Slightly increase the tolerance to allow the appending PR number
...(isCi && { 'header-max-length': [2, 'always', 110] })
2021-07-04 02:01:02 -05:00
},
};