Skip to content

Commit 7794e5f

Browse files
authored
Update moduleResolution defaults in tsconfigRules
1 parent 71aa8ee commit 7794e5f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/tsconfig-reference/scripts/tsconfigRules.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,11 @@ export const defaultsForOptions = {
238238
"`ES6`/`ES2015` otherwise.",
239239
],
240240
moduleResolution: [
241-
"`Classic` if [`module`](#module) is `AMD`, `UMD`, `System`, or `ES6`/`ES2015`;",
242-
"Matches if [`module`](#module) is `node16` or `nodenext`;",
243-
"`Node` otherwise.",
241+
"`Node10` if [`module`](#module) is `CommonJS`;",
242+
"`Node16` if [`module`](#module) is `Node16` or `Node18`;",
243+
"`NodeNext` if [`module`](#module) is `NodeNext`;",
244+
"`Preserve` if [`module`](#module) is `Bundler`;",
245+
"`Classic` otherwise.",
244246
],
245247
newLine: "`lf`",
246248
noImplicitAny: trueIf("strict"),

0 commit comments

Comments
 (0)