From 43794193ef981ffecb477bfce444428ded852aa0 Mon Sep 17 00:00:00 2001 From: AndreaWalchshoferSCCH <122894794+AndreaWalchshoferSCCH@users.noreply.github.com> Date: Thu, 30 Mar 2023 14:49:30 +0200 Subject: Add diagnostic to enforce lowercase local element names (#2) --- doc/zh-cn/config.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'doc/zh-cn') diff --git a/doc/zh-cn/config.md b/doc/zh-cn/config.md index 869e2506..294fe046 100644 --- a/doc/zh-cn/config.md +++ b/doc/zh-cn/config.md @@ -329,6 +329,7 @@ Array * ``"unused-label"`` * ``"unused-local"`` * ``"unused-vararg"`` +* ``"uppercase-local"`` ## default @@ -470,6 +471,7 @@ object "strict": "Fallback", /* * global-element + * uppercase-local */ "strict-convention": "None", /* @@ -593,6 +595,7 @@ object "strict": "Fallback", /* * global-element + * uppercase-local */ "strict-convention": "Fallback", /* @@ -926,7 +929,11 @@ object /* 未使用的不定参数 */ - "unused-vararg": "Opened" + "unused-vararg": "Opened", + /* + Enable diagnostics to warn about local element names starting with an uppercase letter. + */ + "uppercase-local": "None" } ``` @@ -1177,7 +1184,11 @@ object /* 未使用的不定参数 */ - "unused-vararg": "Hint" + "unused-vararg": "Hint", + /* + Enable diagnostics to warn about local element names starting with an uppercase letter. + */ + "uppercase-local": "Warning" } ``` -- cgit v1.2.3