Something went wrong. Try again.
because I got bored of customising my CV for every job
Something went wrong. Try again.
cv-manager commitlint.config.cjs
610 B · 25 lines
at main
1234567891011121314151617181920212223242526module.exports = { extends: ["@commitlint/config-conventional"], rules: { "scope-empty": [2, "never"], "scope-case": [2, "always", "kebab-case"], "scope-pattern": [2, "always"], "body-leading-blank": [2, "always"], "header-max-length": [2, "always", 100], }, plugins: [ { rules: { "scope-pattern": ({ scope }) => { if (!scope) { return [true]; } return [ /^cvg-\d+$/.test(scope), `scope must match cvg-<n> (lowercase, dashed digits), got: ${scope}`, ]; }, }, }, ],};