- Notifications
You must be signed in to change notification settings - Fork 948
Open
Labels
Description
When using the type-empty rule the separator : is still required.
Expected Behavior
If the type is empty and the scope, there is no need to specify the : separator.
echo 'Toto' | commitlint #true echo ': Toto' | commitlint #falseCurrent Behavior
module.exports = { extends: ['@commitlint/config-conventional'], rules: { 'type-empty': [2, 'always'], }, }echo 'Toto' | commitlint #false echo ': Toto' | commitlint #trueAffected packages
- cli
- core
- prompt
- config-angular
Possible Solution
A solution would be either to add a new rule (separator-empty) or to make the type-empty rule remove the : separator.
Your Environment
| Executable | Version |
|---|---|
commitlint --version | @commitlint/cli@16.2.1 |
git --version | git version 2.32.0 |
node --version | v17.5.0 |