-
-
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
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have read the FAQ and my problem is not listed.
Repro
void
is currently included in the keyword
group, but it fits better with the nullish
group.
{
"rules": {
"@typescript-eslint/sort-type-union-intersection-members": [2, {
"groupOrder": [
"literal",
"keyword",
"named",
"operator",
"function",
"import",
"conditional",
"object",
"tuple",
"intersection",
"union",
"nullish"
]
}
}
type Foo = void | ObjectId | null | undefined;
Expected Result
type Foo = ObjectId | null | undefined | void;
Actual Result
type Foo = void | ObjectId | null | undefined;
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
4.13.0 |
@typescript-eslint/parser |
4.13.0 |
TypeScript |
4.1.3 |
ESLint |
7.13.0 |
node |
14.15.0 |
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