Skip to content

Commit

Permalink
Merge pull request #103 from edemaine/strict-true
Browse files Browse the repository at this point in the history
Change default TypeScript behavior to strict: true (fix #41)
  • Loading branch information
amoutonbrady authored May 16, 2022
2 parents a8257bf + 75702ce commit f6d99de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion playground/utils/exportFiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default defineConfig({
const tsConfig = JSON.stringify(
{
compilerOptions: {
strict: false,
strict: true,
module: 'ESNext',
target: 'ESNext',
jsx: 'preserve',
Expand Down
1 change: 1 addition & 0 deletions src/components/editor/setupSolid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f6d99de

Please sign in to comment.