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 => {
55 message : string ;
66 } ;
77
8- const bannedTypesObj : Record < string , ConvertBanTypeArgument | null > = { } ;
8+ const bannedTypes : Record < string , ConvertBanTypeArgument | null > = { } ;
99
1010 for ( const rule of tslintRule . ruleArguments ) {
1111 const typ = rule [ 0 ] ;
1212 if ( ! typ ) {
1313 break ;
1414 }
1515
16- bannedTypesObj [ typ ] = rule [ 1 ]
16+ bannedTypes [ typ ] = rule [ 1 ]
1717 ? {
1818 message : rule [ 1 ] ,
1919 }
2020 : null ;
2121 }
2222
2323 const ruleArguments =
24- Object . keys ( bannedTypesObj ) . length === 0 ? undefined : [ { types : bannedTypesObj } ] ;
24+ Object . keys ( bannedTypes ) . length === 0 ? undefined : [ { types : bannedTypes } ] ;
2525
2626 return {
2727 rules : [
You can’t perform that action at this time.
0 commit comments