Open
Description
There are 2 notations for methods:
- shorthand method:
baz(): string
- function property:
baz: () => string
sortInterfaces: true
works with shorthand method signature, but not with function property signature.
Minimal reproducible case:
"sort-class-members/sort-class-members": [
"error",
{
"order": [
"[properties]",
"[methods]"
],
"sortInterfaces": true
}
]
interface Foo {
baz: () => string;
bar: string;
}
Expected: warning "Expected property bar to come before method baz"
Actual: no warning
Metadata
Metadata
Assignees
Labels
No labels