@hmfinancial/tsconfig
Use hmfinancial base tsconfig
Installation
npm i -D @hmfinancial/tsconfig
Usage
Create tsconfig.json
and add the following content:
{
"extends": "./node_modules/@hmfinancial/tsconfig/tsconfig",
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
Override
Override the preset configuration by adding custom compilerOptions
.
{
"extends": "./node_modules/@hmfinancial/tsconfig/tsconfig",
"include": ["src/**/*"],
"exclude": ["node_modules"],
"compilerOptions": {
}
}
Preset Config
Following is the included preset configuration.
{
"compilerOptions": {
"lib": ["es2017"],
"moduleResolution": "node",
"noUnusedLocals": true,
"noUnusedParameters": true,
"sourceMap": true,
"declaration": true,
"importHelpers": true,
"module": "commonjs",
"outDir": "lib",
"rootDir": "src",
"strict": true,
"target": "es2017"
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
Learn more about tsconfig extends at: TypeScript - Project Configuration - Extends