Skip to content

[indent] multiple false positives in recent versions #121

Closed
@43081j

Description

@43081j

Example

{
  "rules": {
    "@typescript-eslint/indent": "error"
  }
}
export type Foo = A
  | B
  | C;

Expected Result

Identation is linted.

Actual Result

Indentation is not linted.

Additional Info

It seems we simply don't deal with type aliases.


We should probably be handling TSIntersectionType and TSUnionType. I am happy to PR this but wasn't sure what the best solution is... maybe to transform into a LogicalExpression?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions