Skip to content

Conflict between tslint:align and @typescript-eslint/indent #149

Closed
@rhysowen9

Description

@rhysowen9

I'm running into a conflict between @typescript-eslint/indent and the align rule in @typescript-eslint/tslint/config, specifically with regard to the alignment of parameters on my class constructors.

🐛 Bug Report

  • tslint-to-eslint-config version: 0.2.5
  • ESLint version: 6.3.0
  • Node version: 10.15.3

Actual Behavior

Expected indentation of x spaces but found x @typescript-eslint/indent
or
parameters are not aligned (tslint:align) @typescript-eslint/tslint/config

Expected Behavior

I don't really mind which convention is accepted as long as its consistent.

Reproduction

constructor(private router: Router,
            private authenticationService: AuthenticationService,
            private tokenService: TokenService) {}
constructor(private router: Router,
  private authenticationService: AuthenticationService,
  private tokenService: TokenService) { }
{
    "rules": {
        "@typescript-eslint/indent": [
            "error",
            2
        ],
        "@typescript-eslint/tslint/config": [
            "error",
            {
                "rulesDirectory": [
                    "**MyPath**"
                ],
                "rules": {
                    "align": [
                        true,
                        "parameters",
                        "statements"
                    ]
                }
            }
        ]
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: incorrect converterRule converter with incomplete, incorrect, or invalid rule names and/or argumentsstatus: accepting prsPlease, send in a PR to resolve this! ✨

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions