Skip to content

Commit 5b2d124

Browse files
exKAZUuSunil Pai
authored andcommitted
Support the type-annotations group in sort-comp. (#174)
1 parent 086e2e2 commit 5b2d124

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

transforms/sort-comp.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ const defaultMethodsOrder = [
135135
const regExpRegExp = /\/(.*)\/([g|y|i|m]*)/;
136136

137137
function selectorMatches(selector, method) {
138+
if (!method.value && method.typeAnnotation && selector === 'type-annotations') {
139+
return true;
140+
}
141+
138142
if (method.static && selector === 'static-methods') {
139143
return true;
140144
}

0 commit comments

Comments
 (0)