diff --git a/frontend/apps/service-site/package.json b/frontend/apps/service-site/package.json index 967a6367e..8e9a2cd46 100644 --- a/frontend/apps/service-site/package.json +++ b/frontend/apps/service-site/package.json @@ -35,6 +35,7 @@ "@packages/configs": "workspace:*", "@storybook/nextjs": "^8.3.4", "@storybook/react": "^8.3.4", + "@tsconfig/next": "^2.0.3", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", diff --git a/frontend/apps/service-site/tsconfig.json b/frontend/apps/service-site/tsconfig.json index bac161b21..b72b7d079 100644 --- a/frontend/apps/service-site/tsconfig.json +++ b/frontend/apps/service-site/tsconfig.json @@ -1,23 +1,11 @@ { + "extends": [ + "@tsconfig/next/tsconfig.json", + "@packages/configs/tsconfig/base.json" + ], "compilerOptions": { - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "baseUrl": ".", + "noPropertyAccessFromIndexSignature": false, + "noUnusedLocals": false, "paths": { "@/*": ["./src/*"], "contentlayer/generated": ["./.contentlayer/generated"] diff --git a/frontend/packages/configs/package.json b/frontend/packages/configs/package.json index 82baf4782..6042fa218 100644 --- a/frontend/packages/configs/package.json +++ b/frontend/packages/configs/package.json @@ -3,6 +3,7 @@ "version": "0.0.1", "type": "module", "devDependencies": { - "@biomejs/biome": "1.9.3" + "@biomejs/biome": "1.9.3", + "@tsconfig/strictest": "^2.0.5" } } diff --git a/frontend/packages/configs/tsconfig/base.json b/frontend/packages/configs/tsconfig/base.json new file mode 100644 index 000000000..bba052de6 --- /dev/null +++ b/frontend/packages/configs/tsconfig/base.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "extends": "@tsconfig/strictest/tsconfig.json", + "compilerOptions": { + "jsx": "preserve", + "lib": ["dom", "es2019"], + "resolveJsonModule": true + }, + "include": ["**/*.ts", "**/*.tsx"] +} diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index e16af4c98..b0a1d3da9 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -69,6 +69,9 @@ importers: '@storybook/react': specifier: ^8.3.4 version: 8.3.4(@storybook/test@8.3.4(storybook@8.3.4))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(storybook@8.3.4)(typescript@5.6.2) + '@tsconfig/next': + specifier: ^2.0.3 + version: 2.0.3 '@types/node': specifier: ^20 version: 20.16.10 @@ -99,8 +102,9 @@ importers: '@biomejs/biome': specifier: 1.9.3 version: 1.9.3 - - packages/ui: {} + '@tsconfig/strictest': + specifier: ^2.0.5 + version: 2.0.5 packages: @@ -1602,6 +1606,9 @@ packages: '@tootallnate/quickjs-emscripten@0.23.0': resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} + '@tsconfig/next@2.0.3': + resolution: {integrity: sha512-b4aKvmdWnv9aUy+NStUFlefirk3SItW20OJtbi5/ue9oMRaQtUYbN5zsr7OmV3rlx6Gp6h7A82gPoCXhrNGVPQ==} + '@tsconfig/node10@1.0.11': resolution: {integrity: sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==} @@ -1614,6 +1621,9 @@ packages: '@tsconfig/node16@1.0.4': resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} + '@tsconfig/strictest@2.0.5': + resolution: {integrity: sha512-ec4tjL2Rr0pkZ5hww65c+EEPYwxOi4Ryv+0MtjeaSQRJyq322Q27eOQiFbuNgw2hpL4hB1/W/HBGk3VKS43osg==} + '@turbo/gen@2.1.3': resolution: {integrity: sha512-2uNpN7kHXHvhC/I/nY+4KjZoZASBNpHINe9M/L7edd//aq02lbcOF8ftxQ2KA6+QwWCtEzxHYrOTXmiauNF9xQ==} hasBin: true @@ -7588,6 +7598,8 @@ snapshots: '@tootallnate/quickjs-emscripten@0.23.0': {} + '@tsconfig/next@2.0.3': {} + '@tsconfig/node10@1.0.11': {} '@tsconfig/node12@1.0.11': {} @@ -7596,6 +7608,8 @@ snapshots: '@tsconfig/node16@1.0.4': {} + '@tsconfig/strictest@2.0.5': {} + '@turbo/gen@2.1.3(@types/node@22.7.4)(typescript@5.6.2)': dependencies: '@turbo/workspaces': 2.1.3