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
/
no-magic-numbers
/
tslint.json
11 lines
(10 loc)
•
324 B
JSON
View Raw
1
2
3
4
5
6
7
8
9
10
11
{
"rules"
:
{
"no-magic-numbers"
:
[
true
,
-1
,
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
100
,
1000
,
10000
]
}
,
"meta"
:
{
"category"
:
"typescript-specific"
,
"description"
:
"禁止使用魔法数字,仅允许使用一部分白名单中的数字"
,
"reason"
:
"魔法数字无法理解"
}
}