Skip to content

Instantly share code, notes, and snippets.

@stephane-klein
Created March 4, 2021 08:51
Show Gist options
  • Save stephane-klein/f285763641a6e5103b7a93fbafb45c28 to your computer and use it in GitHub Desktop.
Save stephane-klein/f285763641a6e5103b7a93fbafb45c28 to your computer and use it in GitHub Desktop.
commitlint.config.js
// 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