@i-am/typescript-config
v0.1.5
Published
Typescript shared configuration for projects within the organization
Readme
This package provides a shared TypeScript configuration for projects within the organization. It ensures consistency across different codebases and reduces setup time for new projects.
Installation
To use this configuration in your TypeScript project, add it as a dependency:
npm install @i-am/typescript-config --save-devUsage
After installing the package, you can extend the configuration in your project's tsconfig.json:
{
"extends": "@i-am/typescript-config/base.json"
}This will apply the shared configuration to your project, ensuring consistency across different codebases.
Configuration
The shared configuration includes the following settings:
compilerOptions.declaration: Enables declaration files for TypeScript projects.compilerOptions.declarationMap: Generates a declaration map for each declaration file.compilerOptions.esModuleInterop: Enables interoperability between CommonJS and ES Modules.compilerOptions.incremental: Enables incremental compilation for faster builds.compilerOptions.isolatedModules: Enables isolated modules for better performance.compilerOptions.lib: Specifies the target library for the project.compilerOptions.module: Specifies the module system for the project.compilerOptions.moduleDetection: Specifies how TypeScript should detect modules.compilerOptions.moduleResolution: Specifies how TypeScript should resolve modules.compilerOptions.noUncheckedIndexedAccess: Disables unchecked indexed access for arrays.compilerOptions.resolveJsonModule: Enables support for importing JSON files.compilerOptions.skipLibCheck: Skips type checking of declaration files.compilerOptions.strict: Enables strict type checking.compilerOptions.target: Specifies the target environment for the project.
