Open Grawl opened 9 months ago
Same. Came here for this too.
Using TypeScript and would like to have required parameters first and optional follow, then apply Perfectionists sorting rules inside of those groups.
The same for default values
Actual:
const {
a,
b = c, // ??????
c,
} = test
Expected:
const {
a,
c,
b = c,
} = test
+1
What rule do you want to change?
Props
Describe the problem
I want to sort optional props to the bottom.
Code example
I mean that
required?: boolean
is supposed to be aftercount: number
in Props type object.Additional comments
No response
Validations