Skip to content

Commit

Permalink
fix: switch to ugrc standard tsconfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Jan 15, 2025
1 parent 35c46bc commit 0588b0e
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 18 deletions.
18 changes: 18 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
"@types/eslint__js": "^8.42.3",
"@types/react": "^19.0.3",
"@types/react-dom": "^19.0.2",
"@ugrc/tsconfigs": "^1.0.3",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20",
"concurrently": "^9.1.2",
Expand Down
4 changes: 4 additions & 0 deletions tsconfig.browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "@ugrc/tsconfigs/browser",
"include": ["src"]
}
27 changes: 9 additions & 18 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"jsx": "preserve",
"lib": ["esnext", "DOM"],
"module": "esnext",
"moduleResolution": "bundler",
"noEmit": true,
// this is just a dummy prop to make the compiler happy
"outDir": "./typescriptOut",
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": false,
"types": ["node", "vite/client"]
},
"exclude": ["node_modules/**/*", "functions/node_modules/**/*"],
"include": ["functions/**/*", "src/**/*"]
"files": [],
"references": [
{
"path": "./tsconfig.browser.json"
},
{
"path": "./tsconfig.vite-config.json"
}
]
}
4 changes: 4 additions & 0 deletions tsconfig.vite-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "@ugrc/tsconfigs/vite-config",
"include": ["vite.config.ts"]
}

0 comments on commit 0588b0e

Please sign in to comment.