Skip to content

Commit

Permalink
fix(eslint-plugin): [sort-type-union-intersection-members] consider `…
Browse files Browse the repository at this point in the history
…void` as a `nullish` (#2944)

Fixes #2940
  • Loading branch information
bradzacher committed Jan 19, 2021
1 parent e1eac83 commit a241b25
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -49,11 +49,11 @@ function getGroup(node: TSESTree.TypeNode): Group {
case AST_NODE_TYPES.TSSymbolKeyword:
case AST_NODE_TYPES.TSThisType:
case AST_NODE_TYPES.TSUnknownKeyword:
case AST_NODE_TYPES.TSVoidKeyword:
return Group.keyword;

case AST_NODE_TYPES.TSNullKeyword:
case AST_NODE_TYPES.TSUndefinedKeyword:
case AST_NODE_TYPES.TSVoidKeyword:
return Group.nullish;

case AST_NODE_TYPES.TSLiteralType:
Expand Down

0 comments on commit a241b25

Please sign in to comment.