mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00
33 lines
661 B
TypeScript
33 lines
661 B
TypeScript
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',
|
|
],
|
|
],
|
|
},
|
|
ignores: [
|
|
(commitMessage) => {
|
|
// add an exception for github
|
|
return /^Merge branch '.*' into [a-zA-Z0-9\/\-_]+$/.test(commitMessage);
|
|
},
|
|
],
|
|
};
|
|
|
|
export default config;
|