diff --git a/src/main.tsx b/src/main.tsx
index d995293..280d27e 100644
--- a/src/main.tsx
+++ b/src/main.tsx
@@ -3,4 +3,4 @@ import './index.css'
import 'halfmoon/css/halfmoon.min.css';
import App from './components/app.tsx'
-render(
, document.getElementById('app')!)
+render(
, document.getElementById('app') as HTMLElement || document.body)
diff --git a/tsconfig.app.json b/tsconfig.app.json
index d5cbc23..7bf2d3e 100644
--- a/tsconfig.app.json
+++ b/tsconfig.app.json
@@ -4,14 +4,20 @@
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
+ "lib": [
+ "ES2020",
+ "DOM",
+ "DOM.Iterable"
+ ],
"skipLibCheck": true,
"paths": {
- "react": ["./node_modules/preact/compat/"],
- "react-dom": ["./node_modules/preact/compat/"]
+ "react": [
+ "./node_modules/preact/compat/"
+ ],
+ "react-dom": [
+ "./node_modules/preact/compat/"
+ ]
},
-
- /* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
@@ -19,13 +25,13 @@
"noEmit": true,
"jsx": "react-jsx",
"jsxImportSource": "preact",
-
- /* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
- "include": ["src"]
-}
+ "include": [
+ "src"
+ ]
+}
\ No newline at end of file
diff --git a/tsconfig.node.json b/tsconfig.node.json
index db0becc..73aa84f 100644
--- a/tsconfig.node.json
+++ b/tsconfig.node.json
@@ -2,23 +2,23 @@
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"target": "ES2022",
- "lib": ["ES2023"],
+ "lib": [
+ "ES2023"
+ ],
"module": "ESNext",
"skipLibCheck": true,
-
- /* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
-
- /* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
- "include": ["vite.config.ts"]
-}
+ "include": [
+ "vite.config.ts"
+ ]
+}
\ No newline at end of file