diff options
Diffstat (limited to 'doc/en-us/config.md')
-rw-r--r-- | doc/en-us/config.md | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/doc/en-us/config.md b/doc/en-us/config.md index d9d04b39..2a76be14 100644 --- a/doc/en-us/config.md +++ b/doc/en-us/config.md @@ -333,12 +333,16 @@ object<string, string> * cast-type-mismatch * need-check-nil * param-type-mismatch + * return-type-mismatch * undefined-field */ "type-check": "Fallback", /* * missing-parameter + * missing-return + * missing-return-value * redundant-parameter + * redundant-return-value * redundant-value * unbalanced-assignments */ @@ -446,12 +450,16 @@ object<string, string> * cast-type-mismatch * need-check-nil * param-type-mismatch + * return-type-mismatch * undefined-field */ "type-check": "Fallback", /* * missing-parameter + * missing-return + * missing-return-value * redundant-parameter + * redundant-return-value * redundant-value * unbalanced-assignments */ @@ -580,6 +588,8 @@ object<string, string> */ "lowercase-global": "Any", "missing-parameter": "Any", + "missing-return": "Any", + "missing-return-value": "Any", "need-check-nil": "Opened", /* 在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作 @@ -601,10 +611,12 @@ object<string, string> */ "redundant-parameter": "Any", "redundant-return": "Opened", + "redundant-return-value": "Any", /* Enable the redundant values assigned diagnostics. It's raised during assignment operation, when the number of values is higher than the number of objects being assigned. */ "redundant-value": "Any", + "return-type-mismatch": "Opened", "spell-check": "None", /* Enable trailing space diagnostics. @@ -710,6 +722,8 @@ object<string, string> */ "lowercase-global": "Information", "missing-parameter": "Warning", + "missing-return": "Warning", + "missing-return-value": "Warning", "need-check-nil": "Warning", /* 在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作 @@ -731,10 +745,12 @@ object<string, string> */ "redundant-parameter": "Warning", "redundant-return": "Hint", + "redundant-return-value": "Warning", /* Enable the redundant values assigned diagnostics. It's raised during assignment operation, when the number of values is higher than the number of objects being assigned. */ "redundant-value": "Warning", + "return-type-mismatch": "Warning", "spell-check": "Information", /* Enable trailing space diagnostics. @@ -932,6 +948,28 @@ boolean true ``` +# hint.semicolon + +If there is no semicolon at the end of the statement, display a virtual semicolon. + +## type + +```ts +string +``` + +## enum + +* ``"All"``: All statements display virtual semicolons. +* ``"SameLine"``: When two statements are on the same line, display a semicolon between them. +* ``"Disable"``: Disable virtual semicolons. + +## default + +```jsonc +"SameLine" +``` + # hint.setType Show hints of type at assignment operation. |