File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,23 +5,23 @@ export const convertBanTypes: RuleConverter = tslintRule => {
5
5
message : string ;
6
6
} ;
7
7
8
- const bannedTypesObj : Record < string , ConvertBanTypeArgument | null > = { } ;
8
+ const bannedTypes : Record < string , ConvertBanTypeArgument | null > = { } ;
9
9
10
10
for ( const rule of tslintRule . ruleArguments ) {
11
11
const typ = rule [ 0 ] ;
12
12
if ( ! typ ) {
13
13
break ;
14
14
}
15
15
16
- bannedTypesObj [ typ ] = rule [ 1 ]
16
+ bannedTypes [ typ ] = rule [ 1 ]
17
17
? {
18
18
message : rule [ 1 ] ,
19
19
}
20
20
: null ;
21
21
}
22
22
23
23
const ruleArguments =
24
- Object . keys ( bannedTypesObj ) . length === 0 ? undefined : [ { types : bannedTypesObj } ] ;
24
+ Object . keys ( bannedTypes ) . length === 0 ? undefined : [ { types : bannedTypes } ] ;
25
25
26
26
return {
27
27
rules : [
You can’t perform that action at this time.
0 commit comments