From 765174b6749fb5fbb95bbd695a23776eaf3ec74b Mon Sep 17 00:00:00 2001 From: gnezim Date: Tue, 14 Apr 2026 21:55:18 +0300 Subject: [PATCH] Add strict TypeScript config with @/ and @phase0/ aliases --- src/typecheck-placeholder.ts | 1 + tsconfig.json | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 src/typecheck-placeholder.ts create mode 100644 tsconfig.json diff --git a/src/typecheck-placeholder.ts b/src/typecheck-placeholder.ts new file mode 100644 index 00000000..cb0ff5c3 --- /dev/null +++ b/src/typecheck-placeholder.ts @@ -0,0 +1 @@ +export {}; diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..4e23b775 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,30 @@ +{ + "compilerOptions": { + "target": "ES2023", + "module": "ESNext", + "moduleResolution": "Bundler", + "lib": ["ES2023", "DOM", "DOM.Iterable"], + "jsx": "react-jsx", + "strict": true, + "noUncheckedIndexedAccess": true, + "noImplicitOverride": true, + "noFallthroughCasesInSwitch": true, + "exactOptionalPropertyTypes": true, + "isolatedModules": true, + "verbatimModuleSyntax": true, + "resolveJsonModule": true, + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "baseUrl": ".", + "paths": { + "@/*": ["src/*"], + "@phase0/*": ["scripts/phase-0/*"] + }, + "types": ["node", "vitest/globals"] + }, + "include": ["src/**/*.ts", "src/**/*.tsx", "vitest.config.ts"], + "exclude": ["node_modules", "dist", "ClientApp", "wwwroot"] +}