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