You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
control/.commitlintrc.ts

34 lines
679 B

import type { UserConfig } from '@commitlint/types';
import { RuleConfigSeverity } from '@commitlint/types';
const config: UserConfig = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
RuleConfigSeverity.Error,
'always',
[
'chore',
'ci',
'docs',
'enhancement',
'feat',
'fix',
'release',
'revert',
'security',
'test',
'future',
],
],
},
ignores: [
(commitMessage) => {
// add an exception for github
return /^Merge branch '.*' into [a-zA-Z0-9\/\-_]+$/.test(commitMessage);
},
],
};
export default config;