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-namespace
/
tslint.json
12 lines
(11 loc)
•
383 B
JSON
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
{
"rules"
: {
"no-namespace"
: [
true
,
"allow-declarations"
] },
"meta"
: {
"category"
:
"typescript-specific"
,
"description"
:
"禁止使用 `namespace` 来定义命名空间"
,
"reason"
:
"使用 es6 引入模块,才是更标准的方式。
\n
允许使用 `declare namespace ... {}` 来定义外部命名空间"
,
"ts-only"
:
true
} }