collect reusable code

This commit is contained in:
thislight 2024-11-28 18:11:07 +08:00
parent efd52d057f
commit bacbf7d67e
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
10 changed files with 290 additions and 63 deletions

29
tsconfig.json Normal file
View file

@ -0,0 +1,29 @@
{
"compilerOptions": {
// Enable latest features
"lib": ["ESNext", "DOM"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"allowJs": true,
// 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
},
"include": [
"./**/**.ts", "./**/**.js"
]
}