Skip to content

Commit 4af2d55

Browse files
committed
Rename an unclear variable name for banned-type to self-descriptive name
Fix: #353 (comment)
1 parent 8c833da commit 4af2d55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rules/converters/ban-types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ export const convertBanTypes: RuleConverter = tslintRule => {
88
const bannedTypes: Record<string, ConvertBanTypeArgument | null> = {};
99

1010
for (const rule of tslintRule.ruleArguments) {
11-
const typ = rule[0];
12-
if (!typ) {
11+
const bannedType = rule[0];
12+
if (!bannedType) {
1313
break;
1414
}
1515

16-
bannedTypes[typ] = rule[1]
16+
bannedTypes[bannedType] = rule[1]
1717
? {
1818
message: rule[1],
1919
}

0 commit comments

Comments
 (0)