chore(config): add shared tsconfig and eslint packages

This commit is contained in:
2026-04-04 11:57:31 +08:00
parent cdbd3e1092
commit 80cc982700
7 changed files with 82 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "Bundler",
"strict": true,
"noImplicitOverride": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "./base.json",
"compilerOptions": {
"module": "CommonJS",
"moduleResolution": "Node",
"lib": ["ES2022"],
"types": ["node"],
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"sourceMap": true
}
}
+12
View File
@@ -0,0 +1,12 @@
{
"name": "@todolist/tsconfig",
"version": "0.1.0",
"description": "Shared TypeScript config presets for TodoList",
"license": "GPL-3.0-or-later",
"private": true,
"files": [
"base.json",
"react-app.json",
"nest-app.json"
]
}
+9
View File
@@ -0,0 +1,9 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "./base.json",
"compilerOptions": {
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"jsx": "react-jsx",
"types": ["vite/client"]
}
}