2023-01-30 21:06:18 +00:00
|
|
|
const { utils } = require('@commitlint/config-nx-scopes');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
extends: ['@commitlint/config-conventional', '@commitlint/config-nx-scopes'],
|
|
|
|
rules: {
|
|
|
|
'scope-empty': [2, 'never'],
|
|
|
|
'scope-enum': async (ctx) => [
|
|
|
|
2,
|
|
|
|
'always',
|
2023-08-08 10:23:28 +00:00
|
|
|
['ci', 'docs', 'specs', ...(await utils.getProjects(ctx))],
|
2023-01-30 21:06:18 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|