diff options
Diffstat (limited to 'doc/zh-cn/config.md')
-rw-r--r-- | doc/zh-cn/config.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/zh-cn/config.md b/doc/zh-cn/config.md index 991932b6..7698ac42 100644 --- a/doc/zh-cn/config.md +++ b/doc/zh-cn/config.md @@ -238,6 +238,7 @@ Array<string> * ``"err-nonstandard-symbol"`` * ``"err-then-as-do"`` * ``"exp-in-action"`` +* ``"global-element"`` * ``"global-in-nil-env"`` * ``"index-in-func-name"`` * ``"invisible"`` @@ -468,6 +469,10 @@ object<string, string> */ "strict": "Fallback", /* + * global-element + */ + "conventions": "None", + /* * no-unknown */ "strong": "Fallback", @@ -587,6 +592,10 @@ object<string, string> */ "strict": "Fallback", /* + * global-element + */ + "conventions": "Fallback", + /* * no-unknown */ "strong": "Fallback", @@ -775,6 +784,10 @@ object<string, string> */ "empty-block": "Opened", /* + Enable diagnostics to warn about global elements. + */ + "global-element": "None", + /* 不能使用全局变量( `_ENV` 被设置为了 `nil`) */ "global-in-nil-env": "Any", @@ -1022,6 +1035,10 @@ object<string, string> */ "empty-block": "Hint", /* + Enable diagnostics to warn about global elements. + */ + "global-element": "Warning", + /* 不能使用全局变量( `_ENV` 被设置为了 `nil`) */ "global-in-nil-env": "Warning", |