fix(scripts): add tsconfig to fix TS errors

This commit is contained in:
PalmDevs 2025-04-03 23:01:37 +07:00
parent 8acd8cd1bf
commit c99a9063d7
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

24
scripts/tsconfig.json Normal file
View file

@ -0,0 +1,24 @@
{
"compilerOptions": {
// Enable latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false,
// Other options
"types": []
}
}