TS 5.7 added support for ES2024. By keeping target: “esnext”, we would have accidentally set our minimum supported ES version to ES2024. This sets it to ES2022, which is the version supported by Node 18
16 lines
363 B
JSON
16 lines
363 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": ["es2020.string"],
|
|
"noEmit": true,
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noImplicitReturns": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"downlevelIteration": true,
|
|
"skipLibCheck": true,
|
|
},
|
|
"exclude": ["src/**/*.test.ts"]
|
|
}
|