-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Milestone
Description
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
?
DanielSWolf, dacioromero, maxmilton and kyranet
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin