File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import type { ScopeManager } from "eslint-scope"
7
7
import type { ParseError } from "./errors"
8
8
import type { HasLocation } from "./locations"
9
9
import type { Token } from "./tokens"
10
- // eslint-disable-next-line node/no-extraneous-import -- ignore
10
+
11
11
import type { TSESTree } from "@typescript-eslint/utils"
12
12
13
13
//------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -308,6 +308,10 @@ export function parseScriptSetupElements(
308
308
}
309
309
result . ast . tokens . sort ( ( a , b ) => a . range [ 0 ] - b . range [ 0 ] )
310
310
}
311
+
312
+ if ( result . ast . comments != null ) {
313
+ result . ast . comments . sort ( ( a , b ) => a . range [ 0 ] - b . range [ 0 ] )
314
+ }
311
315
result . ast . body . sort ( ( a , b ) => a . range [ 0 ] - b . range [ 0 ] )
312
316
313
317
const programStartOffset = result . ast . body . reduce (
You can’t perform that action at this time.
0 commit comments