tkrotoff/throw-on

View on GitHub
tsconfig.json

Summary

Maintainability
Test Coverage
{
  "compilerOptions": {
    "noEmit": true,

    // https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html
    // https://devblogs.microsoft.com/typescript/announcing-typescript-4-1/#jsx-factories
    // If we keep "preserve", sometimes tsc-files generates "error TS2503: Cannot find namespace 'React'"
    "jsx": "react-jsxdev",

    "target": "esnext",
    "lib": ["esnext", "dom"],

    "module": "esnext",
    "moduleResolution": "node",
    "esModuleInterop": true,
    "isolatedModules": true,

    "strict": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "noImplicitReturns": true,
    "noFallthroughCasesInSwitch": true,
    "forceConsistentCasingInFileNames": true
  }
}