Skip to content

Commit 37326a7

Browse files
committed
ci: relax commitlint scope-empty rule
Bare top-level types like `ci:` and `docs:` are valid Conventional Commits subjects per the spec; the scope segment is optional. The project's commitlint config previously required a scope on every commit (`scope-empty: [2, never]`), which is stricter than the spec and rejects perfectly conformant commit subjects. Demoting the rule to level 0 (disabled) leaves the scope-enum allowlist enforced for commits that DO declare a scope, while permitting bare-type subjects. Signed-off-by: MicrosoftWindows96 <spam@zagrosi.com>
1 parent 944bb9f commit 37326a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎commitlint.config.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default {
2424
'ci',
2525
'deps',
2626
]],
27-
'scope-empty': [2, 'never'],
27+
'scope-empty': [0, 'never'],
2828
'subject-case': [2, 'never', ['pascal-case', 'upper-case']],
2929
'subject-full-stop': [2, 'never', '.'],
3030
'header-max-length': [2, 'always', 100],

0 commit comments

Comments
 (0)