Commit 8d4e08f
committed
refactor(compat-eslint): hoist remaining lazy requires in lib + index
Three places the previous sweep missed because they imported
different names from already-hoisted modules or different modules
entirely:
- `index.ts:buildScanPredicate` — `predicateForTriggerSet`,
`predicateAllKinds` from `./lib/ts-ast-scan` (had `tsScanTraverse`
only).
- `lib/lazy-estree.ts` — `xhtmlEntities` from `./xhtml-entities`,
used inside `unescapeJsxText`.
- `lib/lazy-source-code.ts` and `lib/ts-scope-manager.ts` —
both reach into `./lazy-estree` for `materialize` from a
fallback path. No cycle: `lazy-estree` doesn't import either
file.
Production code is now `as typeof import`-free; every dep is at
top of file. All four test suites still clean.1 parent a723c4d commit 8d4e08f
4 files changed
Lines changed: 4 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | 491 | | |
495 | 492 | | |
496 | 493 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
4938 | 4939 | | |
4939 | 4940 | | |
4940 | 4941 | | |
4941 | | - | |
4942 | 4942 | | |
4943 | 4943 | | |
4944 | 4944 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
587 | 588 | | |
588 | 589 | | |
589 | 590 | | |
590 | | - | |
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
1480 | 1481 | | |
1481 | 1482 | | |
1482 | 1483 | | |
1483 | | - | |
1484 | | - | |
1485 | | - | |
1486 | 1484 | | |
1487 | 1485 | | |
1488 | 1486 | | |
| |||
0 commit comments