Skip to content

Commit

Permalink
update config.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Jun 29, 2022
1 parent 3132920 commit e8e593c
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 0 deletions.
38 changes: 38 additions & 0 deletions doc/en-us/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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行代码之间缺少分隔符,在语法上被解析为了一次索引操作
Expand All @@ -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.
Expand Down Expand Up @@ -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行代码之间缺少分隔符,在语法上被解析为了一次索引操作
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
38 changes: 38 additions & 0 deletions doc/pt-br/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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行代码之间缺少分隔符,在语法上被解析为了一次索引操作
Expand All @@ -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",
/*
后置空格
Expand Down Expand Up @@ -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行代码之间缺少分隔符,在语法上被解析为了一次索引操作
Expand All @@ -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",
/*
后置空格
Expand Down Expand Up @@ -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.
Expand Down
38 changes: 38 additions & 0 deletions doc/zh-cn/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down Expand Up @@ -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行代码之间缺少分隔符,在语法上被解析为了一次索引操作
Expand All @@ -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",
/*
后置空格
Expand Down Expand Up @@ -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行代码之间缺少分隔符,在语法上被解析为了一次索引操作
Expand All @@ -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",
/*
后置空格
Expand Down Expand Up @@ -931,6 +947,28 @@ boolean
true
```

# hint.semicolon

若语句尾部没有分号,则显示虚拟分号。

## type

```ts
string
```

## enum

* ``"All"``: 所有语句都显示虚拟分号。
* ``"SameLine"``: 2个语句在同一行时,在它们之间显示分号。
* ``"Disable"``: 禁用虚拟分号。

## default

```jsonc
"SameLine"
```

# hint.setType

在赋值操作位置提示类型。
Expand Down
Loading

0 comments on commit e8e593c

Please sign in to comment.