Skip to content

TSLint rule arguments are not picked up #261

Closed
@jeremyyap

Description

@jeremyyap

🐛 Bug Report

  • tslint-to-eslint-config version: 0.2.10
  • ESLint version: 6.5.1
  • Node version: 12.10.0

Actual Behavior

The generated .eslintrc.js is missing some rule arguments. I believe it is due to the input TSLint rule arguments being ignored.

Actual output:

    "rules": {
        "@typescript-eslint/indent": "error"
    }

Expected Behavior

Expected output:

    "rules": {
        "@typescript-eslint/indent": [
            "error",
            2,
            {
                "FunctionDeclaration": {
                    "parameters": "first"
                },
                "FunctionExpression": {
                    "parameters": "first"
                }
            }
        ]
    }

Reproduction

Sample TSLint config:

{
  "rules": {
    "align": [ true, "parameters", "statements" ],
    "indent": [ true, "spaces", 2 ]
  }
}

Metadata

Metadata

Labels

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