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-import-side-effect
/
tslint.json
16 lines
(15 loc)
•
453 B
JSON
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"rules"
: {
"no-import-side-effect"
: [
true
, {
"ignore-module"
:
"(
\\
.css|
\\
.less|
\\
.sass|
\\
.scss)$"
} ] },
"meta"
: {
"category"
:
"typescript-specific"
,
"description"
:
"禁止导入有副作用(立即执行)的模块,除了 `css`, `less`, `sass`, `scss`"
,
"reason"
:
"有副作用(立即执行)的模块无法控制其执行过程"
} }