Skip to content

Commit

Permalink
refactor type setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dtemkin1 committed Dec 8, 2024
1 parent 57ad585 commit 903db30
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 50 deletions.
26 changes: 0 additions & 26 deletions tsconfig.app.json

This file was deleted.

26 changes: 21 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
{
"files": [],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
]
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"customConditions": ["source"]
},
"exclude": ["node_modules"],
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}
22 changes: 3 additions & 19 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"target": "ES2022",
"lib": ["ES2023"],
"module": "ESNext",
"skipLibCheck": true,

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
"composite": true,
"module": "esnext",
"moduleResolution": "node"
},
"include": ["vite.config.ts"]
}

0 comments on commit 903db30

Please sign in to comment.