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
/
strict-type-predicates
/
tslint.json
13 lines
(12 loc)
•
463 B
JSON
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"rules"
: {
"strict-type-predicates"
:
false
},
"meta"
: {
"category"
:
"functionality"
,
"description"
:
"禁止出现永远为 `true` 或永远为 `false` 的条件判断(通过类型预测出一个表达式为 `true` 还是 `false`)"
,
"reason"
:
"没必要限制
\n
Requires Type Info 的规则,无法在编辑器中显示错误,不方便修复"
,
"ts-only"
:
true
,
"requires-type-info"
:
true
} }