Skip to content

Commit

Permalink
Merge pull request #20 from route06inc/migrated-tsconfig-json
Browse files Browse the repository at this point in the history
maintenance: migrate tsconfig.json
  • Loading branch information
MH4GF authored Oct 8, 2024
2 parents 2d76cd3 + 94b1c95 commit faf60c4
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 21 deletions.
1 change: 1 addition & 0 deletions frontend/apps/service-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
24 changes: 6 additions & 18 deletions frontend/apps/service-site/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
3 changes: 2 additions & 1 deletion frontend/packages/configs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
10 changes: 10 additions & 0 deletions frontend/packages/configs/tsconfig/base.json
Original file line number Diff line number Diff line change
@@ -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"]
}
18 changes: 16 additions & 2 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit faf60c4

Please sign in to comment.