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-var-requires
/
tslint.json
12 lines
(11 loc)
•
325 B
JSON
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
{
"rules"
:
{
"no-var-requires"
:
true
}
,
"meta"
:
{
"category"
:
"typescript-specific"
,
"description"
:
"禁止使用 `require` 来引入模块"
,
"reason"
:
"统一使用 `import` 来引入模块,特殊情况使用单行注释允许 `require` 引入"
,
"ts-only"
:
true
}
}