Skip to content

Commit

Permalink
update tsconfig files
Browse files Browse the repository at this point in the history
  • Loading branch information
enuchi committed Apr 7, 2024
1 parent b772480 commit b187da4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
26 changes: 23 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
{
"compilerOptions": {
"target": "ES2019", // to support V8 runtime
"types": ["gas-types-detailed"],
"jsx": "react",
"esModuleInterop": true
}
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"allowJs": true, // allow .js files

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
}
12 changes: 12 additions & 0 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"types": ["gas-types-detailed"],
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true,
"strict": true
},
"include": ["vite.config.ts"]
}

0 comments on commit b187da4

Please sign in to comment.