// Commitlint — Conventional Commits canon JCS SAR. // Tipos extras: docs, perf, ci, revert (além dos convencionais). export default { extends: ['@commitlint/config-conventional'], rules: { // Escopo opcional mas encorajado (api | web | shared | infra | docs) 'scope-enum': [ 1, // warn, não error — novo escopo pode surgir legitimamente 'always', ['api', 'web', 'shared', 'infra', 'docs', 'e2e', 'config'], ], // Corpo pode ter qualquer comprimento (mensagens longas são bem-vindas) 'body-max-line-length': [0, 'always', Infinity], 'footer-max-line-length': [0, 'always', Infinity], }, };