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-reference
/
tslint.json
11 lines
(10 loc)
•
365 B
JSON
View Raw
1
2
3
4
5
6
7
8
9
10
11
{
"rules"
: {
"no-reference"
:
true
},
"meta"
: {
"category"
:
"typescript-specific"
,
"description"
:
"禁止使用三斜线引入模块 `/// <reference path=
\"
foo
\"
/>`"
,
"reason"
:
"引入模块时应使用更先进的 `import` 语法
\n
三斜线仅能用于引入一个类型文件 `/// <reference types=
\"
foo
\"
/>`"
} }