Installation
Install the package with one of the following commands below.
# For NPM
npm install --save-dev @aetherjs/ts-config
# For PNPM
pnpm add -D @aetherjs/ts-config
# For YARN
yarn add -D @aetherjs/ts-config
Usage
Add the following to your tsconfig.json
file.
{
"extends": "@aetherjs/ts-config"
}
Below is a copy of the configuration for easy viewing.
{
"compileOnSave": true,
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"alwaysStrict": true,
"declaration": true,
"declarationMap": true,
"emitDecoratorMetadata": false,
"esModuleInterop": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"importsNotUsedAsValues": "error",
"incremental": true,
"lib": ["esnext"],
"module": "CommonJS",
"moduleResolution": "Node",
"newLine": "lf",
"noEmitHelpers": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"preserveConstEnums": true,
"pretty": true,
"removeComments": false,
"resolveJsonModule": true,
"sourceMap": true,
"strict": true,
"target": "ES2020",
"useDefineForClassFields": true
}
}
This package was inspired by @sapphire/ts-config