summaryrefslogtreecommitdiff
path: root/server/tsconfig.json
blob: 8cc9ad3642ad3d27c80b2a732014db3cea77e12a (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
{
  "compilerOptions": {
    // add Bun type definitions
    "types": ["bun-types"],

    // enable latest features
    "lib": ["esnext"],
    "module": "esnext",
    "target": "esnext",

    // if TS 5.x+
    "moduleResolution": "bundler",
    "noEmit": true,
    "allowImportingTsExtensions": true,
    "moduleDetection": "force",

    "jsx": "react-jsx", // support JSX
    "allowJs": true, // allow importing `.js` from `.ts`
    "esModuleInterop": true, // allow default imports for CommonJS modules

    // best practices
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "skipLibCheck": true,

    // engine path
    "paths": {
      "@engine/*": ["../engine/*"],
      "@engine/components": ["../engine/components"],
      "@engine/config": ["../engine/config"],
      "@engine/entities": ["../engine/entities"],
      "@engine/interfaces": ["../engine/interfaces"],
      "@engine/structures": ["../engine/structures"],
      "@engine/systems": ["../engine/systems"],
      "@engine/utils": ["../engine/utils"],
    }
  }
}