mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-02 03:15:52 +08:00
38 lines
1.6 KiB
JSON
38 lines
1.6 KiB
JSON
{
|
|
"$schema": "http://json.schemastore.org/tsconfig",
|
|
"compilerOptions": {
|
|
// Use incremental builds with project references.
|
|
"incremental": true,
|
|
"composite": true,
|
|
// Target modern JavaScript (ES2022+) whilst staying closely compatible with the Node.js module system.
|
|
"target": "ES2022",
|
|
"module": "NodeNext",
|
|
"moduleDetection": "force", // Treat every non-declaration file as a module.
|
|
"esModuleInterop": false, // Do not fiddle with import/export statements
|
|
"verbatimModuleSyntax": true, // Only transform/eliminate type-only import/export statements.
|
|
"allowJs": false, // If you touch this, a puppy dies.
|
|
"rewriteRelativeImportExtensions": true, // Rewrite `.ts` imports to `.js` at build time.
|
|
"erasableSyntaxOnly": true, // Allows to run directly with node and type removal
|
|
// Emit source- & declaration maps.
|
|
"declarationMap": true,
|
|
"sourceMap": true,
|
|
// Opt-in to stricter type checking and correctness guard rails. The more the merrier.
|
|
"strict": true,
|
|
"exactOptionalPropertyTypes": true,
|
|
"noUnusedLocals": true,
|
|
"noImplicitOverride": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
// Miscellaneoaus
|
|
"skipLibCheck": true, // Skip type checking of third party libraries.
|
|
"noErrorTruncation": true, // Do not truncate error messages.
|
|
"types": [], // Disable automatic loading of `@types/*` packages.
|
|
"plugins": [
|
|
{
|
|
"name": "@effect/language-service",
|
|
"transform": "@effect/language-service/transform",
|
|
"namespaceImportPackages": ["effect", "@effect/*"]
|
|
}
|
|
]
|
|
}
|
|
}
|