diff --git a/playground/utils/exportFiles.tsx b/playground/utils/exportFiles.tsx index b395ca3f..1e9e42dd 100644 --- a/playground/utils/exportFiles.tsx +++ b/playground/utils/exportFiles.tsx @@ -19,7 +19,7 @@ export default defineConfig({ const tsConfig = JSON.stringify( { compilerOptions: { - strict: false, + strict: true, module: 'ESNext', target: 'ESNext', jsx: 'preserve', diff --git a/src/components/editor/setupSolid.ts b/src/components/editor/setupSolid.ts index 8a2709ae..b292b155 100644 --- a/src/components/editor/setupSolid.ts +++ b/src/components/editor/setupSolid.ts @@ -65,6 +65,7 @@ cm(sStore, 'store/types/store.d.ts'); languages.typescript.typescriptDefaults.setEagerModelSync(true); languages.typescript.typescriptDefaults.setCompilerOptions({ + strict: true, target: languages.typescript.ScriptTarget.ESNext, module: languages.typescript.ModuleKind.ESNext, moduleResolution: languages.typescript.ModuleResolutionKind.NodeJs,