Skip to content

Commit 2480727

Browse files
committed
Update comments
1 parent 6de7a10 commit 2480727

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/shared.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ function getSpecifierItems(tokens) {
477477
const newlineIndexRaw = after.findIndex((token2) => isNewline(token2));
478478
const newlineIndex = newlineIndexRaw === -1 ? -1 : newlineIndexRaw + 1;
479479

480-
// If there’s a multiline block comment, put everything _befor_ that
480+
// If there’s a multiline block comment, put everything _before_ that
481481
// comment in the specifiers’s `.after`.
482482
const multilineBlockCommentIndex = after.findIndex(
483483
(token2) => isBlockComment(token2) && hasNewline(token2.code)
@@ -806,7 +806,7 @@ function getSource(node) {
806806
// Make `../` sort after `../../` but before `../a` etc.
807807
// Why a comma? See the next comment.
808808
.replace(/^[./]*\/$/, "$&,")
809-
// Make `.` and `/` sort before any other punctation.
809+
// Make `.` and `/` sort before any other punctuation.
810810
// The default order is: _ - , x x x . x x x / x x x
811811
// We’re changing it to: . / , x x x _ x x x - x x x
812812
.replace(/[./_-]/g, (char) => {
@@ -831,9 +831,7 @@ function getSource(node) {
831831

832832
function getImportExportKind(node) {
833833
// `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).
837835
return node.importKind || node.exportKind || "value";
838836
}
839837

0 commit comments

Comments
 (0)