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
2022-07-07 17:24:57 +08:00

10 lines
414 B
JavaScript

const { rules } = require('@commitlint/config-conventional');
/** @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', 'ui', 'deps']]
},
};