mirror of
https://github.com/peakoss/anti-slop
synced 2026-11-28 13:37:41 +08:00
52 lines
1.2 KiB
JSON
52 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://www.schemastore.org/tsconfig.json",
|
|
"files": ["tsdown.config.ts", "prettier.config.ts", "eslint.config.ts"],
|
|
"include": ["src/**/*.ts"],
|
|
|
|
"compilerOptions": {
|
|
// Type Checking
|
|
"allowUnreachableCode": false,
|
|
"allowUnusedLabels": false,
|
|
"exactOptionalPropertyTypes": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noImplicitOverride": true,
|
|
"noImplicitReturns": true,
|
|
"noPropertyAccessFromIndexSignature": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"strict": true,
|
|
|
|
// Modules
|
|
"allowImportingTsExtensions": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"noUncheckedSideEffectImports": true,
|
|
"resolveJsonModule": true,
|
|
"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
|
|
}
|
|
}
|