Mischa Spiegelmock
12/04/2021, 6:24 PMrequire() of ES modules is not supported.
Ross Coundon
12/04/2021, 6:28 PMimport
?Mischa Spiegelmock
12/04/2021, 6:29 PMRoss Coundon
12/04/2021, 6:37 PMMischa Spiegelmock
12/04/2021, 6:53 PM{
// <https://www.npmjs.com/package/@tsconfig/node14>
"extends": "@tsconfig/node14/tsconfig.json",
"compilerOptions": {
"module": "esnext",
"target": "ESNext",
"allowJs": true,
"esModuleInterop": true,
"composite": true, // <https://www.typescriptlang.org/docs/handbook/project-references.html>
"incremental": true,
"jsx": "react-jsx", // better frontend/backend tooling interoperability (ts-jest)
"moduleResolution": "node", // modern
"declaration": true /* Generates corresponding '.d.ts' file. */,
"declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */,
"sourceMap": true /* Generates corresponding '.map' file. */,
// "resolveJsonModule": true, // allow importing JSON files
"experimentalDecorators": true, // enable decorators
"emitDecoratorMetadata": true, // for runtime use of decorators
// "baseUrl": "packages", // allow absolute path imports for all project packages
"strictPropertyInitialization": true,
"strictNullChecks": true,
// "noUnusedLocals": true /* Report errors on unused locals. */,
// "noUnusedParameters": true /* Report errors on unused parameters. */,
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
"noImplicitOverride": true // must use override
}
}
Mischa Spiegelmock
12/04/2021, 6:53 PMMischa Spiegelmock
12/04/2021, 7:22 PMMischa Spiegelmock
12/05/2021, 10:23 AMDavide Ungari
12/06/2021, 8:13 AM