UNPKG
tslint-config-alloy
Version:
latest (0.2.1)
0.2.1
0.2.0
0.1.0
AlloyTeam TSLint 规则
github.com/AlloyTeam/tslint-config-alloy
AlloyTeam/tslint-config-alloy
tslint-config-alloy
/
test
/
promise-function-async
/
tslint.json
12 lines
(11 loc)
•
418 B
JSON
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
{
"rules"
: {
"promise-function-async"
:
false
},
"meta"
: {
"category"
:
"typescript-specific"
,
"description"
:
"`async` 函数的返回值必须是 `Promise`"
,
"reason"
:
"有时 `async` 函数在某个分支是同步的,不需要返回 `Promise`
\n
Requires Type Info 的规则,无法在编辑器中显示错误,不方便修复"
,
"requires-type-info"
:
true
} }