From ade25f256c3191673c307a6ec468dce79bd82cff Mon Sep 17 00:00:00 2001 From: Beace Date: Wed, 6 Jul 2022 11:06:44 +0800 Subject: [PATCH] chore: use @artus/tsconfig (#125) --- package.json | 1 + tsconfig.json | 46 +++++++++++----------------------------------- 2 files changed, 12 insertions(+), 35 deletions(-) diff --git a/package.json b/package.json index 3a4138d..ffa8150 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ }, "homepage": "https://github.com/artusjs/core#readme", "devDependencies": { + "@artus/tsconfig": "0.0.1", "@types/jest": "^27.4.1", "@types/js-yaml": "^4.0.5", "@types/koa": "^2.13.4", diff --git a/tsconfig.json b/tsconfig.json index 3dda78f..4c5a8d0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,38 +1,14 @@ { - "compilerOptions": { - "outDir": "./lib", - "target": "es2017", - "module": "commonjs", - "lib": [ - "es2015", - "es2016", - "es2017" - ], - "allowJs": false, - "jsx": "react", - "declaration": true, - "skipDefaultLibCheck": true, - "skipLibCheck": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "strictPropertyInitialization": true, - "noImplicitThis": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "moduleResolution": "node", - "types": [ - "node", - "jest", - "reflect-metadata" - ], - "allowSyntheticDefaultImports": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "emitDecoratorMetadata": true - }, - "exclude": [ - "lib", + "extends": "@artus/tsconfig", + "compilerOptions": { + "outDir": "./lib", + "types": [ + "node", + "jest", + "reflect-metadata" ], + }, + "exclude": [ + "lib", + ], }