-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
enhancementNew feature or requestNew feature or requestpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
Sometimes null gets lost with other types when it's sorted with the rest of the keyword types. Moving null
and undefined
to their own group would allow them to be sorted independently to other types.
- 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
{
"rules": {
"@typescript-eslint/sort-type-union-intersection-members": "error"
}
}
Current Behavior
function foo(input: number | null | string | undefined) { ... }
Proposed Behavior
function foo(input: number | string | null | undefined) { ... }
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
4.12.0 |
@typescript-eslint/parser |
4.12.0 |
TypeScript |
4.1.3 |
ESLint |
7.17.0 |
node |
12.20.1 |
usernamehw
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin