import type { UserConfig } from '@commitlint/types' const config: UserConfig = { extends: ['@commitlint/config-conventional'], rules: { 'type-enum': [ 2, 'always', ['feat', 'fix', 'docs', 'style', 'refactor', 'test', 'chore', 'revert'], ], 'subject-max-length': [2, 'always', 100], }, } export default config