chore: clean up tsconfigs and use bun-types

This commit is contained in:
PalmDevs
2024-01-17 22:53:06 +07:00
parent 1d54f5b9f8
commit 680f00722f
6 changed files with 33 additions and 13 deletions

View File

@@ -1,9 +0,0 @@
{
"$schema": "./config.schema.json",
"address": "127.0.0.1",
"port": 3000,
"ocrConcurrentQueues": 1,
"clientHeartbeatInterval": 5000,
"consoleLogLevel": "log"
}

View File

@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.apis.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"outDir": "dist",

View File

@@ -5,7 +5,8 @@
"rootDir": "./src",
"outDir": "dist",
"module": "ESNext",
"composite": true
"composite": true,
"noEmit": false
},
"exclude": ["node_modules", "dist"]
}

View File

@@ -5,7 +5,8 @@
"rootDir": "./src",
"outDir": "dist",
"module": "ESNext",
"composite": true
"composite": true,
"noEmit": false
},
"exclude": ["node_modules", "dist"]
}

27
tsconfig.json Normal file
View File

@@ -0,0 +1,27 @@
{
"extends": ["@tsconfig/strictest", "bun-types"],
"compilerOptions": {
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"moduleResolution": "Bundler",
"strict": true,
"skipLibCheck": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"useUnknownInCatchVariables": true,
"noPropertyAccessFromIndexSignature": true,
"composite": false,
"resolveJsonModule": true,
"esModuleInterop": true,
"declaration": false,
"allowSyntheticDefaultImports": true,
"isolatedModules": true,
"allowImportingTsExtensions": false
}
}

2
tsconfig.packages.json Executable file → Normal file
View File

@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.base.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true