Repository: typescript-eslint/tslint-to-eslint-config (ts)

Issue:
Indent converter does not map options
<!--
👋 Hi, thanks for filing an issue on tslint-to-eslint-config! 💖
Please fill out all fields below to ensure your issue is addressed.

If your issue doesn't provide enough info to fully explain or reproduce your bug, it will be closed. 😦
-->

### 💥 Incomplete Converter

-   `tslint-to-eslint-config` version: 0.2.8
-   `typescript-eslint` version: 2.5.0

#### TSLint Rule Name

<!-- Which TSLint rule did tslint-to-eslint-config report not having a converter?  -->
`indent` has a converter to `@typescript-eslint/indent` but it does not map the options over.

TSLint's [indent](https://palantir.github.io/tslint/rules/indent/) rule supports options of `tabs` or `spaces` and `2` or `4` indent width in the case of space indentation.

Sample TSLint config:

```
{
  "rules": {
    "indent": [ true, "spaces", 2 ]
  }
}
```

Expected output:
```
    "rules": {
        "@typescript-eslint/indent": [ "error", 2 ]
    }
```

Actual output:
```
    "rules": {
        "@typescript-eslint/indent": "error"
    }
```


Pull request:
Add ruleArguments mapping to indent converter
<!--
👋 Hi, thanks for sending a PR to tslint-to-eslint-config! 💖
Please fill out all fields below to ensure your PR is reviewed quickly.
-->

## PR Checklist

-   [x] Addresses an existing issue: fixes #251
-   [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint-to-eslint-config/labels/status%3A%20accepting%20prs)

## Overview



<!-- Brief description of what is changed and how the code change does that. -->
This PR adds mapping of the rule arguments from TSLint `indent` to @typescript-eslint/indent`.

TSLint's `indent` [rule](https://palantir.github.io/tslint/rules/indent/) accepts 2 arguments: indent type (required) and indent size (optional). I was unsure how indent size would work in the case of tab indentation but from looking at [TSLint source](https://github.com/palantir/tslint/blob/e493270e314541e2f14b35bddbe9b74ea50cbfa9/src/rules/indentRule.ts#L110), the second argument is ignored in the case of `"tabs"` indentation. 

Patch:
diff --git a/src/rules/converters/indent.ts b/src/rules/converters/indent.ts
index 7adf534..6685477 100644
--- a/src/rules/converters/indent.ts
+++ b/src/rules/converters/indent.ts
@@ -1,10 +1,19 @@
 import { RuleConverter } from "../converter";
 
-export const convertIndent: RuleConverter = () => {
+export const convertIndent: RuleConverter = tslintRule => {
+    let indentSize: number | string = 4; // @typescript-eslint/indent default
+
+    if (tslintRule.ruleArguments[0] === "tabs") {
+        indentSize = "tabs";
+    } else if (tslintRule.ruleArguments[1] === 2) {
+        indentSize = 2;
+    }
+
     return {
         rules: [
             {
                 ruleName: "@typescript-eslint/indent",
+                ...(indentSize !== 4 && { ruleArguments: [indentSize] }),
             },
         ],
     };


Test patch:
diff --git a/src/rules/converters/tests/indent.test.ts b/src/rules/converters/tests/indent.test.ts
index 9e7f5f3..bed0c2a 100644
--- a/src/rules/converters/tests/indent.test.ts
+++ b/src/rules/converters/tests/indent.test.ts
@@ -14,4 +14,48 @@ describe(convertIndent, () => {
             ],
         });
     });
+
+    test("conversion with 2 spaces", () => {
+        const result = convertIndent({
+            ruleArguments: ["spaces", 2],
+        });
+
+        expect(result).toEqual({
+            rules: [
+                {
+                    ruleName: "@typescript-eslint/indent",
+                    ruleArguments: [2],
+                },
+            ],
+        });
+    });
+
+    test("conversion with 4 spaces", () => {
+        const result = convertIndent({
+            ruleArguments: ["spaces", 4],
+        });
+
+        expect(result).toEqual({
+            rules: [
+                {
+                    ruleName: "@typescript-eslint/indent",
+                },
+            ],
+        });
+    });
+
+    test("conversion with tabs", () => {
+        const result = convertIndent({
+            ruleArguments: ["tabs", 4],
+        });
+
+        expect(result).toEqual({
+            rules: [
+                {
+                    ruleName: "@typescript-eslint/indent",
+                    ruleArguments: ["tabs"],
+                },
+            ],
+        });
+    });
 });