tsconfig-oy
v2.0.1
Published
Shared TypeScript config for my projects (modernized for TS 6/7, ESM/NodeNext).
Maintainers
Readme
tsconfig-oy
Shared TypeScript base config.
Installation
$ npm install --save-dev tsconfig-oyUsage
// tsconfig.json
{
"extends": "tsconfig-oy",
"compilerOptions": {
"outDir": "lib",
"declarationDir": "lib",
"rootDir": ".",
"types": ["node", "vitest/globals"]
},
"include": ["src/**/*.ts", "test/**/*.ts"]
}v2.0.1 — modernization (breaking)
Future-proofed for TypeScript 6/7 and ESM:
- Removed deprecated options that error in TS 6 and are removed in TS 7:
baseUrl,downlevelIteration,alwaysStrict. Consumers no longer need"ignoreDeprecations". - Added
isolatedModulesandverbatimModuleSyntax(modern single-file transpilation + explicitimport type). - Dropped project-specific bits that don't belong in a shared base:
jsx/jsxFactory,experimentalDecorators/emitDecoratorMetadata,paths(@cutepilot/*),incremental, and thetypes/typeRoots(set these per-project). - Kept the established strictness convention:
strict: truewithnoImplicitAny: false,strictBindCallApply: false,noUnusedParameters: false. module/moduleResolutionset toNodeNext(PascalCase is fine in TS 6).
Projects set outDir, declarationDir, rootDir, types, and include
themselves.
