diff --git a/.vscode/settings.json b/.vscode/settings.json index 29e56e92a..87d72b7ed 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,11 +1,15 @@ { "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", - "typescript.tsdk": "node_modules/typescript/lib", + "js/ts.tsdk.path": "node_modules/typescript/lib", "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "editor.formatOnSaveMode": "file", + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit" } } diff --git a/tsconfig.build.json b/tsconfig.build.json index b08da7b51..1195be209 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,7 +1,4 @@ { - "typeAcquisition": { - "enable": false - }, "files": [], "references": [ { diff --git a/tsconfig.json b/tsconfig.json index 508446624..35f50caf8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,20 +4,19 @@ "target": "ESNext", "module": "ESNext", "lib": ["ESNext", "DOM", "DOM.Iterable"], - "allowJs": true, + "allowJs": false, "checkJs": false, "strict": true, - "strictNullChecks": true, "esModuleInterop": true, - "allowSyntheticDefaultImports": true, "resolveJsonModule": true, "skipLibCheck": true, "moduleResolution": "bundler", "allowImportingTsExtensions": true, "composite": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + // "verbatimModuleSyntax": true, "noEmit": true, - "noImplicitAny": true, - "alwaysStrict": true, "tsBuildInfoFile": "./.tsbuildinfo/tsconfig.tsbuildinfo", "baseUrl": ".", "paths": { @@ -47,9 +46,6 @@ "$client/*": ["src/client/*"] } }, - "typeAcquisition": { - "enable": false - }, "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.js", "src/**/*.jsx"], "exclude": ["node_modules", "dist", "coverage"] } diff --git a/tsconfig.node.json b/tsconfig.node.json index 5f946f066..bf9811ea3 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -5,11 +5,9 @@ "lib": ["ESNext"], "types": ["node"], "allowJs": true, - "checkJs": false, + "checkJs": true, "strict": true, - "strictNullChecks": true, "esModuleInterop": true, - "allowSyntheticDefaultImports": true, "resolveJsonModule": true, "skipLibCheck": true, "moduleResolution": "bundler",