Created
September 28, 2021 05:39
-
-
Save elevenpassin/b2d99cf6c90787934488d9c572fb51ec to your computer and use it in GitHub Desktop.
A simple but useful extension to config conventional and commitlint defaults.
This file contains hidden or 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
const configConventional = require('@commitlint/config-conventional') | |
const customConventionalConfig = { | |
...configConventional, | |
} | |
customConventionalConfig.rules['type-enum'] = [ | |
2, | |
'always', | |
[ | |
'setup', | |
...customConventionalConfig.rules['type-enum'][2], | |
] | |
] | |
customConventionalConfig.prompt.questions.type.enum.setup = { | |
description: | |
'Changes that are made to the foundations of the project, aka webpack, eslint, prettier, commit hooks or introducing any new libraries etc', | |
title: 'Setup', | |
emoji: '💅', | |
} | |
module.exports = customConventionalConfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment