We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c833da commit 4af2d55Copy full SHA for 4af2d55
src/rules/converters/ban-types.ts
@@ -8,12 +8,12 @@ export const convertBanTypes: RuleConverter = tslintRule => {
8
const bannedTypes: Record<string, ConvertBanTypeArgument | null> = {};
9
10
for (const rule of tslintRule.ruleArguments) {
11
- const typ = rule[0];
12
- if (!typ) {
+ const bannedType = rule[0];
+ if (!bannedType) {
13
break;
14
}
15
16
- bannedTypes[typ] = rule[1]
+ bannedTypes[bannedType] = rule[1]
17
? {
18
message: rule[1],
19
0 commit comments