modernize backend to target the same ES and TS standards as the rest of the app

This commit is contained in:
Hazelnoot 2025-10-06 00:01:10 -04:00
parent 22f49db21f
commit 9beeca5942
29 changed files with 460 additions and 232 deletions

View file

@ -1,53 +1,10 @@
{
"compilerOptions": {
"allowJs": true,
"noEmitOnError": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noUnusedParameters": false,
"noUnusedLocals": false,
"noFallthroughCasesInSwitch": true,
"declaration": false,
"sourceMap": false,
"target": "ES2022",
"module": "nodenext",
"moduleResolution": "nodenext",
"allowSyntheticDefaultImports": true,
"removeComments": false,
"noLib": false,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": false,
"skipLibCheck": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"resolveJsonModule": true,
"isolatedModules": true,
"incremental": true,
"rootDir": "./src",
"baseUrl": "./",
"paths": {
"@/*": ["./src/*"]
},
"outDir": "./built",
"types": [
"node"
],
"typeRoots": [
"./src/@types",
"./node_modules/@types",
"./node_modules"
],
"lib": [
"esnext"
]
},
"compileOnSave": false,
"include": [
"./src/**/*.ts"
],
"exclude": [
"node_modules",
"./src/**/*.test.ts"
"$schema": "https://json.schemastore.org/tsconfig",
"files": [],
// WebStorm only reads one tsconfig per directory, so this tricks it into loading both.
"references": [
{ "path": "./tsconfig.scripts.json" },
{ "path": "./tsconfig.backend.json" },
{ "path": "./jsconfig.frontend.json" }
]
}