-
-
Save stephane-klein/f285763641a6e5103b7a93fbafb45c28 to your computer and use it in GitHub Desktop.
commitlint.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If you update this file, to test it locally, you need to rebuild it (see README.md) | |
module.exports = { | |
extends: ["@commitlint/config-conventional"], | |
ignores: [ (message) => message.match(/wip/i) ], | |
parserPreset: { | |
parserOpts: { | |
issuePrefixes: ['#', '!'] | |
} | |
}, | |
rules: { | |
"header-max-length": [2, "always", 200], | |
"body-max-line-length": [2, "always", 200], | |
"scope-enum": [ | |
2, | |
"always", | |
[ | |
"deployment", | |
"ci", | |
"database", | |
"admin-console", | |
"external-console", | |
"shared", | |
"end2end", | |
"storybook", | |
"graphql-api", | |
"graphile-worker", | |
"gibbon-mail", | |
"misc" | |
] | |
], | |
"scope-empty": [2, "never"], | |
"type-enum": [ | |
2, | |
"always", | |
[ | |
"feat", | |
"fix", | |
"docs", | |
"refactor", | |
"style", | |
"improve", | |
"chore", | |
"enabler" | |
] | |
], | |
"references-empty": [ | |
2, | |
"never" | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment