aboutsummaryrefslogtreecommitdiff
path: root/front/tsconfig.json
diff options
context:
space:
mode:
authorStanisław Zagórowski <hasohasacz@gmail.com>2023-08-30 18:00:11 +0200
committerStanisław Zagórowski <hasohasacz@gmail.com>2023-08-30 18:00:11 +0200
commitb7c37574f4f90fc346bc51dd06c77c8958570b33 (patch)
tree72895a18a8d72ecd35bf9b71030d6bf40ae34167 /front/tsconfig.json
parentb661407d801c8ccaa7773ae30f0fc26a1d70ffff (diff)
all: move front into its own directory
Diffstat (limited to 'front/tsconfig.json')
-rw-r--r--front/tsconfig.json32
1 files changed, 32 insertions, 0 deletions
diff --git a/front/tsconfig.json b/front/tsconfig.json
new file mode 100644
index 0000000..907453c
--- /dev/null
+++ b/front/tsconfig.json
@@ -0,0 +1,32 @@
+{
+ "compilerOptions": {
+ "target": "ES2020",
+ "useDefineForClassFields": true,
+ "module": "ESNext",
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
+ "skipLibCheck": true,
+
+ /* Bundler mode */
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "noEmit": true,
+ "jsx": "react-jsx",
+ "jsxImportSource": "preact",
+
+ /* Linting */
+ "strict": true,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "noFallthroughCasesInSwitch": true,
+
+ "baseUrl": "./",
+ "paths": {
+ "react": ["node_modules/preact/compat"],
+ "react-dom": ["node_modules/preact/compat"]
+ }
+ },
+ "include": ["src"],
+ "references": [{ "path": "./tsconfig.node.json" }]
+}