Skip to content

Commit

Permalink
Update moduleResolution to nodenext
Browse files Browse the repository at this point in the history
This updates to a more modern moduleResolution, from the default of
node/node10.
Relevant typescript-eslint issue:
typescript-eslint/typescript-eslint#7284
  • Loading branch information
stianjensen committed Sep 12, 2023
1 parent bc558ce commit 8015a0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "nodenext",
"strict": true,
"lib": ["es5", "dom"],
// Reduce parse time by not auto-including all @types
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"importHelpers": true,
"sourceMap": true,
"module": "CommonJS",
"moduleResolution": "nodenext",
"target": "ES2015",
"lib": ["ESNext"],
"types": ["node", "jest"],
Expand Down

0 comments on commit 8015a0a

Please sign in to comment.