Skip to content

Commit

Permalink
add typescript configs
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstyles committed May 11, 2024
1 parent 9245d1c commit 80e56b9
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 12 deletions.
27 changes: 27 additions & 0 deletions packages/config-ts/bun.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Bun",
"compilerOptions": {
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,

"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,

"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,

"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false,

"types": ["bun-types"]
}
}
32 changes: 32 additions & 0 deletions packages/config-ts/library.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Client",
"compilerOptions": {
"esModuleInterop": true,
"skipLibCheck": true,
"target": "es2022",
"allowJs": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"isolatedModules": true,
"verbatimModuleSyntax": false,

"strict": true,
"noUncheckedIndexedAccess": false,
"noImplicitOverride": true,

"composite": false,
"declaration": true,
"declarationMap": true,
"sourceMap": true,

"module": "preserve",
"noEmit": true,

"lib": ["es2022", "dom", "dom.iterable"],
"jsx": "react-jsx",

"types": ["bun-types"]
},
"exclude": ["node_modules"]
}
24 changes: 12 additions & 12 deletions packages/config-ts/node.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "React Library",
"extends": "./base.json",
"compilerOptions": {
"lib": ["ES2015", "dom", "dom.iterable", "esnext"],
"target": "esnext",
"module": "esnext",
"moduleResolution": "nodenext",
"noEmit": true,
"allowImportingTsExtensions": true,
"resolveJsonModule": true
}
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node",
"extends": "./base.json",
"compilerOptions": {
"lib": ["ES2015", "dom", "dom.iterable", "esnext"],
"target": "esnext",
"module": "esnext",
"moduleResolution": "nodenext",
"noEmit": true,
"allowImportingTsExtensions": true,
"resolveJsonModule": true
}
}
Empty file added packages/config-ts/readme.md
Empty file.

0 comments on commit 80e56b9

Please sign in to comment.