@@ -477,7 +477,7 @@ function getSpecifierItems(tokens) {
477
477
const newlineIndexRaw = after . findIndex ( ( token2 ) => isNewline ( token2 ) ) ;
478
478
const newlineIndex = newlineIndexRaw === - 1 ? - 1 : newlineIndexRaw + 1 ;
479
479
480
- // If there’s a multiline block comment, put everything _befor_ that
480
+ // If there’s a multiline block comment, put everything _before_ that
481
481
// comment in the specifiers’s `.after`.
482
482
const multilineBlockCommentIndex = after . findIndex (
483
483
( token2 ) => isBlockComment ( token2 ) && hasNewline ( token2 . code )
@@ -806,7 +806,7 @@ function getSource(node) {
806
806
// Make `../` sort after `../../` but before `../a` etc.
807
807
// Why a comma? See the next comment.
808
808
. replace ( / ^ [ . / ] * \/ $ / , "$&," )
809
- // Make `.` and `/` sort before any other punctation .
809
+ // Make `.` and `/` sort before any other punctuation .
810
810
// The default order is: _ - , x x x . x x x / x x x
811
811
// We’re changing it to: . / , x x x _ x x x - x x x
812
812
. replace ( / [ . / _ - ] / g, ( char ) => {
@@ -831,9 +831,7 @@ function getSource(node) {
831
831
832
832
function getImportExportKind ( node ) {
833
833
// `type` and `typeof` imports, as well as `type` exports (there are no
834
- // `typeof` exports). In Flow, import specifiers can also have a kind. Default
835
- // to "value" (like TypeScript) to make regular imports/exports come after the
836
- // type imports/exports.
834
+ // `typeof` exports).
837
835
return node . importKind || node . exportKind || "value" ;
838
836
}
839
837
0 commit comments