Closed JoshuaKGoldberg closed 1 month ago
Fixes #84.
I copy & pasted the existing sort-union-types rule, find-and-replaced "union" to "intersection", then updated tests to use & intersection types.
sort-union-types
&
I didn't add the nullable-last option because I figured that's not a common scenario with intersection types. Maybe I'm wrong there?
nullable-last
fixes #123
Looks awesome! Thank you! ❤️
Description
Fixes #84.
I copy & pasted the existing
sort-union-types
rule, find-and-replaced "union" to "intersection", then updated tests to use&
intersection types.Additional context
I didn't add the
nullable-last
option because I figured that's not a common scenario with intersection types. Maybe I'm wrong there?What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).