This is a recommended setting, see: https://www.typescriptlang.org/tsconfig/#exactOptionalPropertyTypes
20 lines
532 B
JSON
20 lines
532 B
JSON
{
|
|
"compilerOptions": {
|
|
"outDir": "./dist/",
|
|
"noImplicitAny": true,
|
|
"module": "esnext",
|
|
"target": "es2021",
|
|
"downlevelIteration": true, // Needed to allow iteration over some objects like Map() while target is es5
|
|
"jsx": "react-jsx",
|
|
"sourceMap": true,
|
|
"allowJs": true,
|
|
"moduleResolution": "node",
|
|
"types": [
|
|
"vitest/globals",
|
|
"@testing-library/jest-dom"
|
|
],
|
|
"exactOptionalPropertyTypes": true,
|
|
"strictNullChecks": true,
|
|
"allowSyntheticDefaultImports": true
|
|
}
|
|
}
|