diff options
-rw-r--r-- | doc/en-us/config.md | 38 | ||||
-rw-r--r-- | doc/pt-br/config.md | 38 | ||||
-rw-r--r-- | doc/zh-cn/config.md | 38 | ||||
-rw-r--r-- | doc/zh-tw/config.md | 38 |
4 files changed, 152 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. diff --git a/doc/pt-br/config.md b/doc/pt-br/config.md index 68efabb3..55604b55 100644 --- a/doc/pt-br/config.md +++ b/doc/pt-br/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", /* 赋值操作时,值的数量比被赋值的对象多 */ "redundant-value": "Any", + "return-type-mismatch": "Opened", "spell-check": "None", /* 后置空格 @@ -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", /* 赋值操作时,值的数量比被赋值的对象多 */ "redundant-value": "Warning", + "return-type-mismatch": "Warning", "spell-check": "Information", /* 后置空格 @@ -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. diff --git a/doc/zh-cn/config.md b/doc/zh-cn/config.md index 76e56370..77f9b74d 100644 --- a/doc/zh-cn/config.md +++ b/doc/zh-cn/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", /* 赋值操作时,值的数量比被赋值的对象多 */ "redundant-value": "Any", + "return-type-mismatch": "Opened", "spell-check": "None", /* 后置空格 @@ -709,6 +721,8 @@ object<string, string> */ "lowercase-global": "Information", "missing-parameter": "Warning", + "missing-return": "Warning", + "missing-return-value": "Warning", "need-check-nil": "Warning", /* 在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作 @@ -730,10 +744,12 @@ object<string, string> */ "redundant-parameter": "Warning", "redundant-return": "Hint", + "redundant-return-value": "Warning", /* 赋值操作时,值的数量比被赋值的对象多 */ "redundant-value": "Warning", + "return-type-mismatch": "Warning", "spell-check": "Information", /* 后置空格 @@ -931,6 +947,28 @@ boolean true ``` +# hint.semicolon + +若语句尾部没有分号,则显示虚拟分号。 + +## type + +```ts +string +``` + +## enum + +* ``"All"``: 所有语句都显示虚拟分号。 +* ``"SameLine"``: 2个语句在同一行时,在它们之间显示分号。 +* ``"Disable"``: 禁用虚拟分号。 + +## default + +```jsonc +"SameLine" +``` + # hint.setType 在赋值操作位置提示类型。 diff --git a/doc/zh-tw/config.md b/doc/zh-tw/config.md index 4d20a9e3..62a76e57 100644 --- a/doc/zh-tw/config.md +++ b/doc/zh-tw/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", /* 賦值操作時,值的數量比被賦值的對象多 */ "redundant-value": "Any", + "return-type-mismatch": "Opened", "spell-check": "None", /* 後置空格 @@ -709,6 +721,8 @@ object<string, string> */ "lowercase-global": "Information", "missing-parameter": "Warning", + "missing-return": "Warning", + "missing-return-value": "Warning", "need-check-nil": "Warning", /* 在字面常數表中,2行程式碼之間缺少分隔符,在語法上被解析為了一次索引操作 @@ -730,10 +744,12 @@ object<string, string> */ "redundant-parameter": "Warning", "redundant-return": "Hint", + "redundant-return-value": "Warning", /* 賦值操作時,值的數量比被賦值的對象多 */ "redundant-value": "Warning", + "return-type-mismatch": "Warning", "spell-check": "Information", /* 後置空格 @@ -931,6 +947,28 @@ boolean true ``` +# hint.semicolon + +若陳述式尾部沒有分號,則顯示虛擬分號。 + +## type + +```ts +string +``` + +## enum + +* ``"All"``: 所有陳述式都顯示虛擬分號。 +* ``"SameLine"``: 兩個陳述式在同一行時,在它們之間顯示分號。 +* ``"Disable"``: 停用虛擬分號。 + +## default + +```jsonc +"SameLine" +``` + # hint.setType 在賦值操作位置提示類型。 |