Update tsconfig.json

This commit is contained in:
vincanger 2024-02-26 12:00:02 +01:00
parent e49b1dac20
commit 1373c7a7b4

View File

@ -5,17 +5,12 @@
// compiler. Proper TS compiler configuration in Wasp is coming soon :) // compiler. Proper TS compiler configuration in Wasp is coming soon :)
{ {
"compilerOptions": { "compilerOptions": {
"forceConsistentCasingInFileNames": false,
// JSX support // JSX support
"jsx": "preserve", "jsx": "preserve",
"strict": true, "strict": true,
// Allow default imports. // Allow default imports.
"esModuleInterop": true, "esModuleInterop": true,
"lib": [ "lib": ["dom", "dom.iterable", "esnext"],
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true, "allowJs": true,
"types": [ "types": [
// This is needed to properly support Vitest testing with jest-dom matchers. // This is needed to properly support Vitest testing with jest-dom matchers.
@ -27,10 +22,7 @@
// compilation, the following directory doesn't exist. We need to specify // compilation, the following directory doesn't exist. We need to specify
// it to prevent this error: // it to prevent this error:
// https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file // https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file
"outDir": "phantom", "outDir": "phantom"
}, },
"exclude": [ "exclude": ["phantom"]
"phantom"
],
} }