build: add TypeScript + ESLint baseline (typecheck/lint/test scripts)

Root package.json (type: module), strict tsconfig with allowJs/checkJs:false for
gradual migration, flat ESLint config scoped to scripts/ + tests/. App untouched.
All three green: lint, typecheck, test 107/107.
This commit is contained in:
tommy0103
2026-07-08 16:42:08 +08:00
parent a32461b2ab
commit 33ec238c0c
4 changed files with 1025 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"lib": ["ES2023"],
"types": ["node"],
"strict": true,
"noEmit": true,
"allowJs": true,
"checkJs": false,
"skipLibCheck": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true
},
"include": ["scripts/**/*", "tests/**/*"],
"exclude": ["node_modules", "app", "dist", "release"]
}