@corex/tsconfig
v4.0.43
Published
--- title: '@corex/tsconfig' custom_edit_url: 'https://github.com/iamvishnusankar/corex/edit/master/packages/tsconfig/README.md' ---
Downloads
454
Readme
title: '@corex/tsconfig' custom_edit_url: 'https://github.com/iamvishnusankar/corex/edit/master/packages/tsconfig/README.md'
Installation
yarn add @corex/tsconfig -D
Usage
Create tsconfig.json
and add the following content
{
/** extend from @corex/tsconfig **/
"extends": "./node_modules/@corex/tsconfig/tsconfig.json",
"exclude": ["node_modules", "**/dist", "**/__tests__", "**/coverage"]
}
Override
Override the preset configuration by adding custom compilerOptions
.
{
/** extend from @corex/tsconfig **/
"extends": "./node_modules/@corex/tsconfig/tsconfig.json",
"compilerOptions": {
/** Override Options **/
},
"exclude": ["node_modules", "**/dist", "**/__tests__", "**/coverage"]
}
Preset Config
Following is the included preset configuration.
{
"$schema": "http://json.schemastore.org/tsconfig",
"compileOnSave": true,
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.ts-buildcache/tsconfig.buildinfo",
"incremental": true,
"allowSyntheticDefaultImports": true,
"target": "esnext",
"module": "commonjs",
"declaration": true,
"sourceMap": false,
"strict": true,
"jsx": "react",
"moduleResolution": "node",
"skipLibCheck": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noImplicitAny": false,
"strictPropertyInitialization": false,
"noUnusedLocals": true,
"plugins": [
{
"name": "typescript-tslint-plugin"
}
]
},
"exclude": ["node_modules", "dist/**", "__tests__/**"]
}