Adjust tsconfig for ES2022 and JSX.

This commit is contained in:
Bauke 2023-04-07 12:37:37 +02:00
parent adef8fc894
commit 18e0e06edb
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 9 additions and 8 deletions

View File

@ -1,20 +1,21 @@
{ {
"compilerOptions": { "compilerOptions": {
"esModuleInterop": true, "esModuleInterop": true,
"jsx": "react-jsx",
"jsxImportSource": "preact",
"lib": [ "lib": [
"ESNext" "DOM",
"ES2022"
], ],
"module": "ESNext", "module": "ES2022",
"moduleResolution": "Node", "moduleResolution": "Node",
"noEmit": true,
"outDir": "build",
"skipLibCheck": true,
"strict": true, "strict": true,
"target": "ESNext" "target": "ES2022"
}, },
"include": [ "include": [
"source/**/*.ts", "*.ts",
"tests/**/*.ts", "source",
"tests",
"vite.config.ts" "vite.config.ts"
] ]
} }