Skip to content

Indent converter does not map options #251

Closed
@jeremyyap

Description

@jeremyyap

💥 Incomplete Converter

  • tslint-to-eslint-config version: 0.2.8
  • typescript-eslint version: 2.5.0

TSLint Rule Name

indent has a converter to @typescript-eslint/indent but it does not map the options over.

TSLint's 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"
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsPlease, send in a PR to resolve this! ✨type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions