Skip to content

Commit 8595d7d

Browse files
authored
Fix invalid indent rule when using tabs (#720)
1 parent 6bc29c0 commit 8595d7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/rules/converters/indent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const convertIndent: RuleConverter = (tslintRule) => {
44
let indentSize: number | string = 4; // @typescript-eslint/indent default
55

66
if (tslintRule.ruleArguments[0] === "tabs") {
7-
indentSize = "tabs";
7+
indentSize = "tab";
88
} else if (tslintRule.ruleArguments[1] === 2) {
99
indentSize = 2;
1010
}

src/rules/converters/tests/indent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe(convertIndent, () => {
5353
rules: [
5454
{
5555
ruleName: "@typescript-eslint/indent",
56-
ruleArguments: ["tabs"],
56+
ruleArguments: ["tab"],
5757
},
5858
],
5959
});

0 commit comments

Comments
 (0)