@abelspithost/tsconfig
v0.0.1
Published
Basic TypeScript configuration
Readme
@abelspithost/tsconfig
Strict base TypeScript configuration that all other presets extend.
Installation
npm install -D @abelspithost/tsconfig typescriptRequires typescript >= 5.0.0 as a peer dependency.
Usage
// tsconfig.json
{
"extends": "@abelspithost/tsconfig"
}What's included
Type Checking
strict— enables all strict type-checking options
Modules
esModuleInterop— enables CommonJS/ESM interopisolatedModules— ensures each file can be independently transpiledresolveJsonModule— allows importing.jsonfilesverbatimModuleSyntax— enforces explicittypemodifiers on type-only imports/exports
Emit
declaration— generates.d.tsdeclaration filesdeclarationMap— generates declaration source maps for go-to-definition supportsourceMap— generates.js.mapsource mapsoutDir— set to${configDir}/dist
Interop Constraints
forceConsistentCasingInFileNames— disallows inconsistently-cased references to the same fileskipLibCheck— skips type checking of declaration files
Paths
baseUrl— set to${configDir}@/*— aliased to./src/*
File Scope
- include:
${configDir}/**/*.ts - exclude:
${configDir}/dist,${configDir}/node_modules
