Skip to content

Commit 2531cf6

Browse files
author
Josh Goldberg
authored
Used typescript-eslint's no-shadow in conversion (#860)
1 parent f613796 commit 2531cf6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/converters/lintConfigs/rules/ruleConverters/no-shadowed-variable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const convertNoShadowedVariable: RuleConverter = (tslintRule) => {
4040
{
4141
...(notices.length !== 0 && { notices }),
4242
...(ruleArguments.length !== 0 && { ruleArguments }),
43-
ruleName: "no-shadow",
43+
ruleName: "@typescript-eslint/no-shadow",
4444
},
4545
],
4646
};

src/converters/lintConfigs/rules/ruleConverters/tests/no-shadowed-variable.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe(convertNoShadowedVariable, () => {
1010
rules: [
1111
{
1212
ruleArguments: [{ hoist: "all" }],
13-
ruleName: "no-shadow",
13+
ruleName: "@typescript-eslint/no-shadow",
1414
},
1515
],
1616
});
@@ -25,7 +25,7 @@ describe(convertNoShadowedVariable, () => {
2525
rules: [
2626
{
2727
ruleArguments: [{ hoist: "all" }],
28-
ruleName: "no-shadow",
28+
ruleName: "@typescript-eslint/no-shadow",
2929
},
3030
],
3131
});
@@ -40,7 +40,7 @@ describe(convertNoShadowedVariable, () => {
4040
rules: [
4141
{
4242
ruleArguments: [{ hoist: "all" }],
43-
ruleName: "no-shadow",
43+
ruleName: "@typescript-eslint/no-shadow",
4444
},
4545
],
4646
});
@@ -55,7 +55,7 @@ describe(convertNoShadowedVariable, () => {
5555
rules: [
5656
{
5757
ruleArguments: [{ hoist: "never" }],
58-
ruleName: "no-shadow",
58+
ruleName: "@typescript-eslint/no-shadow",
5959
},
6060
],
6161
});
@@ -77,7 +77,7 @@ describe(convertNoShadowedVariable, () => {
7777
"depending on the type of declaration, so all kinds of declarations are checked.",
7878
],
7979
ruleArguments: [{ hoist: "all" }],
80-
ruleName: "no-shadow",
80+
ruleName: "@typescript-eslint/no-shadow",
8181
},
8282
],
8383
});

0 commit comments

Comments
 (0)