From 95f6b7cfdb01f581f81b4d5a956d154ebd3a0777 Mon Sep 17 00:00:00 2001 From: LiXiang <1210548838@qq.com> Date: Sun, 15 May 2022 11:37:00 +0800 Subject: [PATCH] docs: align subject case rule in readme #3159 (#3179) Update the scope-case rule in docs/reference-rules and config-conventional/README to be same. --- @commitlint/config-conventional/README.md | 2 +- docs/reference-rules.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/@commitlint/config-conventional/README.md b/@commitlint/config-conventional/README.md index c0dbebeb95..adb5db6286 100644 --- a/@commitlint/config-conventional/README.md +++ b/@commitlint/config-conventional/README.md @@ -92,7 +92,7 @@ echo "fix(scope): some message" # passes #### subject-case - **condition**: `subject` is in one of the cases `['sentence-case', 'start-case', 'pascal-case', 'upper-case']` -- **rule**: `never` +- **rule**: `always` - **level**: `error` ```sh diff --git a/docs/reference-rules.md b/docs/reference-rules.md index 15ab72ca03..b7ac2302e1 100644 --- a/docs/reference-rules.md +++ b/docs/reference-rules.md @@ -278,12 +278,12 @@ Infinity #### subject-case -- **condition**: `subject` is in case `value` +- **condition**: `subject` is in one of the cases `['sentence-case', 'start-case', 'pascal-case', 'upper-case']` - **rule**: `always` - **value** ``` -'lower-case' +['sentence-case', 'start-case', 'pascal-case', 'upper-case'] ``` - **possible values**