summaryrefslogtreecommitdiff
path: root/backend/tsconfig.json
diff options
context:
space:
mode:
Diffstat (limited to 'backend/tsconfig.json')
-rw-r--r--backend/tsconfig.json46
1 files changed, 46 insertions, 0 deletions
diff --git a/backend/tsconfig.json b/backend/tsconfig.json
new file mode 100644
index 0000000..0373555
--- /dev/null
+++ b/backend/tsconfig.json
@@ -0,0 +1,46 @@
+{
+ "extends": "@tsconfig/node-lts/tsconfig.json",
+ // Visit https://aka.ms/tsconfig to read more about this file
+ "compilerOptions": {
+ // File Layout
+ "rootDir": "./src",
+ "outDir": "./dist",
+
+ // Environment Settings
+ // See also https://aka.ms/tsconfig/module
+ "module": "nodenext",
+ "target": "esnext",
+ "types": [
+ "node"
+ ],
+ // For nodejs:
+ // "lib": ["esnext"],
+ // and npm install -D @types/node
+
+ // Other Outputs
+ "sourceMap": true,
+ "declaration": true,
+ "declarationMap": true,
+
+ // Stricter Typechecking Options
+ "noUncheckedIndexedAccess": true,
+ "exactOptionalPropertyTypes": true,
+
+ // Style Options
+ // "noImplicitReturns": true,
+ // "noImplicitOverride": true,
+ // "noUnusedLocals": true,
+ // "noUnusedParameters": true,
+ // "noFallthroughCasesInSwitch": true,
+ // "noPropertyAccessFromIndexSignature": true,
+
+ // Recommended Options
+ "strict": true,
+ "jsx": "react-jsx",
+ "verbatimModuleSyntax": true,
+ "isolatedModules": true,
+ "noUncheckedSideEffectImports": true,
+ "moduleDetection": "force",
+ "skipLibCheck": true,
+ }
+}