mirror of
https://github.com/peakoss/anti-slop
synced 2026-12-01 13:39:13 +08:00
chore(tooling): reorganize and harden tsconfig.json
This commit is contained in:
1 file changed
+37
-19
+37
-19
@@ -1,20 +1,12 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://www.schemastore.org/tsconfig",
|
"$schema": "https://www.schemastore.org/tsconfig.json",
|
||||||
"include": ["src", "tsdown.config.ts", "eslint.config.ts", "prettier.config.ts"],
|
"files": ["tsdown.config.ts", "prettier.config.ts", "eslint.config.ts"],
|
||||||
"exclude": ["tests", "dist", "node_modules"],
|
"include": ["src/**/*.ts"],
|
||||||
|
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["ES2024"],
|
// Type Checking
|
||||||
"target": "ES2024",
|
|
||||||
"module": "Preserve",
|
|
||||||
"moduleDetection": "force",
|
|
||||||
"moduleResolution": "bundler",
|
|
||||||
"allowImportingTsExtensions": true,
|
|
||||||
"verbatimModuleSyntax": true,
|
|
||||||
"noEmit": true,
|
|
||||||
"declaration": true,
|
|
||||||
"strict": true,
|
|
||||||
"allowUnusedLabels": false,
|
|
||||||
"allowUnreachableCode": false,
|
"allowUnreachableCode": false,
|
||||||
|
"allowUnusedLabels": false,
|
||||||
"exactOptionalPropertyTypes": true,
|
"exactOptionalPropertyTypes": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noImplicitOverride": true,
|
"noImplicitOverride": true,
|
||||||
@@ -23,11 +15,37 @@
|
|||||||
"noUncheckedIndexedAccess": true,
|
"noUncheckedIndexedAccess": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"isolatedModules": true,
|
"strict": true,
|
||||||
"isolatedDeclarations": true,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
// Modules
|
||||||
"skipLibCheck": true,
|
"allowImportingTsExtensions": true,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"noUncheckedSideEffectImports": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"newLine": "lf"
|
"types": ["node"],
|
||||||
|
|
||||||
|
// Emit
|
||||||
|
"declaration": true,
|
||||||
|
"noEmit": true,
|
||||||
|
|
||||||
|
// Interop Constraints
|
||||||
|
"erasableSyntaxOnly": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"isolatedDeclarations": true,
|
||||||
|
"verbatimModuleSyntax": true,
|
||||||
|
|
||||||
|
// Language
|
||||||
|
"lib": ["ES2024"],
|
||||||
|
"libReplacement": false,
|
||||||
|
"moduleDetection": "force",
|
||||||
|
"target": "ES2024",
|
||||||
|
|
||||||
|
// Projects
|
||||||
|
"incremental": true,
|
||||||
|
"tsBuildInfoFile": "./node_modules/.cache/tsconfig.tsbuildInfo",
|
||||||
|
|
||||||
|
// Completeness
|
||||||
|
"skipLibCheck": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user