aboutsummaryrefslogtreecommitdiff
path: root/tsconfig.json
blob: eb218de056e4bbd6e41ba61d67cb5c44f4417255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  "compilerOptions": {
    "baseUrl": ".",

    // Support .tsx files and transform JSX into calls to React.createElement
    "jsx": "react",

    // Enables all strict type checking options.
    "strict": true,

    // enables "core language features"
    "lib": [
      // ESNext auto includes previous versions all the way back to es5
      "esnext",
      // includes support for browser APIs
      "dom"
    ],

    // Node 8 should support everything output by esnext, we override this
    // in webpack with loader-level compiler options
    "target": "esnext",

    // Use commonjs for node, overriden in webpack to keep import statements
    // to maintain support for things like `await import()`
    "module": "commonjs",

    // Allows default imports from modules with no default export. This does not affect code emit, just type checking.
    // We have to enable this option explicitly since `esModuleInterop` doesn't enable it automatically when ES2015 or
    // ESNext module format is used.
    "allowSyntheticDefaultImports": true,

    // Emits __importStar and __importDefault helpers for runtime babel ecosystem compatibility.
    "esModuleInterop": true,

    // Resolve modules in the same way as Node.js. Aka make `require` works the
    // same in TypeScript as it does in Node.js.
    "moduleResolution": "node",

    // Disallow inconsistently-cased references to the same file.
    "forceConsistentCasingInFileNames": true
  },
  "include": [
    "src/**/*"
  ]
}