Skip to content

Commit 2a59e84

Browse files
authored
Loosen Typescript config options for the generated web-app (#3162)
1 parent b10ebbf commit 2a59e84

File tree

11 files changed

+59
-11
lines changed

11 files changed

+59
-11
lines changed

waspc/data/Generator/templates/react-app/tsconfig.app.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,19 @@
55
// Temporary loosen the type checking until we can address all the errors.
66
"jsx": "preserve",
77
"allowJs": true,
8-
"strict": false,
98
"skipLibCheck": true,
109
// Allow importing pages with the .tsx extension.
1110
"allowImportingTsExtensions": true,
1211
"noEmit": true,
12+
// Overriding Vite 7 linting-focused options to be less strict since we
13+
// don't want to block web-app builds on linting errors.
14+
// We'll tackle it when we do: https://github.com/wasp-lang/wasp/issues/2777
15+
"strict": false,
16+
"noUnusedLocals": false,
17+
"noUnusedParameters": false,
18+
"erasableSyntaxOnly": false,
19+
"noFallthroughCasesInSwitch": false,
20+
"noUncheckedSideEffectImports": false
1321
},
1422
"include": [
1523
"src"

waspc/e2e-tests/test-outputs/waspBuild-golden/waspBuild/.wasp/build/.waspchecksums

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

waspc/e2e-tests/test-outputs/waspBuild-golden/waspBuild/.wasp/build/web-app/tsconfig.app.json

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

waspc/e2e-tests/test-outputs/waspCompile-golden/waspCompile/.wasp/out/.waspchecksums

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

waspc/e2e-tests/test-outputs/waspCompile-golden/waspCompile/.wasp/out/web-app/tsconfig.app.json

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

waspc/e2e-tests/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/.waspchecksums

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

waspc/e2e-tests/test-outputs/waspComplexTest-golden/waspComplexTest/.wasp/out/web-app/tsconfig.app.json

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

waspc/e2e-tests/test-outputs/waspJob-golden/waspJob/.wasp/out/.waspchecksums

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

waspc/e2e-tests/test-outputs/waspJob-golden/waspJob/.wasp/out/web-app/tsconfig.app.json

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

waspc/e2e-tests/test-outputs/waspMigrate-golden/waspMigrate/.wasp/out/.waspchecksums

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)