diff --git a/commitlint.config.js b/commitlint.config.js index 2291173..261a3f1 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,3 +1,45 @@ export default { - extends: ['@commitlint/config-conventional'] + extends: ['@commitlint/config-conventional'], + rules: { + 'type-enum': [ + 2, + 'always', + [ + 'feat', + 'fix', + 'docs', + 'style', + 'refactor', + 'perf', + 'test', + 'build', + 'ci', + 'chore', + 'revert', + ], + ], + 'scope-enum': [ + 2, + 'always', + [ + 'admin', + 'api', + 'ui', + 'docker', + 'ci', + 'deps', + 'release', + 'auth', + 'skills', + 'experience', + 'education', + 'projects', + 'personal', + ], + ], + 'scope-empty': [1, 'never'], + 'subject-case': [2, 'always', 'lower-case'], + 'subject-max-length': [2, 'always', 72], + 'body-max-line-length': [2, 'always', 100], + }, };