From a2319730b7953649525787fbf1e88c0756f8379b Mon Sep 17 00:00:00 2001 From: Glen Van Ginkel Date: Tue, 9 Feb 2021 20:43:47 +0000 Subject: [PATCH] tsconfig cleanup --- package.json | 2 +- tsconfig.base.json | 21 --------------------- tsconfig.eslint.json | 11 ----------- tsconfig.json | 33 ++++++++++++++++++++++++++++++++- 4 files changed, 33 insertions(+), 34 deletions(-) delete mode 100644 tsconfig.base.json delete mode 100644 tsconfig.eslint.json diff --git a/package.json b/package.json index 8ca1452..61a85d8 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "lint:fix": "npm run lint -- --fix", "prebuild": "rimraf dist", "perf": "node scripts/perf.js", - "build": "tsc --outDir dist/lib -d --module commonjs --declarationDir dist/types && rollup -c rollup.config.ts", + "build": "tsc --outDir dist/lib -d --module commonjs && rollup -c rollup.config.ts", "start": "rollup -c rollup.config.ts -w", "test": "jest --coverage", "test:watch": "jest --coverage --watch", diff --git a/tsconfig.base.json b/tsconfig.base.json deleted file mode 100644 index 4ba21e0..0000000 --- a/tsconfig.base.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "compilerOptions": { - "allowJs": true, - "allowSyntheticDefaultImports": true, - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "lib": [ - "dom", - "es2017" - ], - "module": "esnext", - "moduleResolution": "node", - "resolveJsonModule": true, - "skipLibCheck": true, - "sourceMap": true, - "strict": true, - "strictNullChecks": true, - "suppressImplicitAnyIndexErrors": true, - "target": "es2017" - } -} diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json deleted file mode 100644 index 9f961f3..0000000 --- a/tsconfig.eslint.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "exclude": [ - "node_modules", - "dist" - ], - "include": [ - "src", - "test" - ] -} diff --git a/tsconfig.json b/tsconfig.json index b4fd571..79307bb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,36 @@ { - "extends": "./tsconfig.base.json", + "compilerOptions": { + "allowJs": true, + "allowSyntheticDefaultImports": true, + "allowUnreachableCode": false, + "declaration": true, + "declarationDir": "dist/types", + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "lib": [ + "es2017", + "dom" + ], + "moduleResolution": "node", + "module": "esnext", + "isolatedModules": true, + "esModuleInterop": true, + "target": "es5", + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitAny": true, + "noImplicitReturns": true, + "noImplicitThis": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "sourceMap": true, + "strict": true, + "strictNullChecks": true, + "suppressImplicitAnyIndexErrors": true, + "typeRoots": [ + "node_modules/@types" + ] + }, "exclude": [ "node_modules", "dist",