From 060d848c1fb854ee765f59c17a0162c9a1071369 Mon Sep 17 00:00:00 2001 From: FreePhoenix888 Date: Wed, 11 Oct 2023 19:23:08 +0600 Subject: [PATCH] Update tsconfig --- package-lock.json | 9 ++++++++- package.json | 3 ++- tsconfig.json | 30 +++++++++--------------------- 3 files changed, 19 insertions(+), 23 deletions(-) diff --git a/package-lock.json b/package-lock.json index 23e63df..f0978af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,9 +19,10 @@ "ts-node-dev": "^2.0.0" }, "devDependencies": { + "@tsconfig/recommended": "^1.0.3", "jest": "^29.5.0", "ts-node": "^10.9.1", - "typescript": "5.0.4" + "typescript": "^5.0.4" }, "peerDependencies": { "@deep-foundation/hasura": "~0.0.53", @@ -1383,6 +1384,12 @@ "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.3.tgz", "integrity": "sha512-yOlFc+7UtL/89t2ZhjPvvB/DeAr3r+Dq58IgzsFkOAvVC6NMJXmCGjbptdXdR9qsX7pKcTL+s87FtYREi2dEEQ==" }, + "node_modules/@tsconfig/recommended": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/recommended/-/recommended-1.0.3.tgz", + "integrity": "sha512-+jby/Guq9H8O7NWgCv6X8VAiQE8Dr/nccsCtL74xyHKhu2Knu5EAKmOZj3nLCnLm1KooUzKY+5DsnGVqhM8/wQ==", + "dev": true + }, "node_modules/@types/accepts": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/@types/accepts/-/accepts-1.3.5.tgz", diff --git a/package.json b/package.json index ee9586c..f8808d0 100644 --- a/package.json +++ b/package.json @@ -32,9 +32,10 @@ "benchmark": "export HASURA_PATH=localhost:8080; export HASURA_SSL=0; export HASURA_SECRET=myadminsecretkey; DEBUG='materialized-path:*' ts-node benchmarks/index.ts" }, "devDependencies": { + "@tsconfig/recommended": "^1.0.3", "jest": "^29.5.0", "ts-node": "^10.9.1", - "typescript": "5.0.4" + "typescript": "^5.0.4" }, "peerDependencies": { "@deep-foundation/hasura": "~0.0.53", diff --git a/tsconfig.json b/tsconfig.json index a5fab18..d7477a4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,26 +1,14 @@ { + "extends": "@tsconfig/recommended/tsconfig.json", + "exclude": [ + "jest.config.ts", + ], "compilerOptions": { - "allowSyntheticDefaultImports": true, - "experimentalDecorators": true, - "sourceMap": true, - "noImplicitAny": false, - "removeComments": true, "jsx": "react", - "module": "commonjs", - "moduleResolution": "node", - "target": "es2015", - "skipLibCheck": true, - "lib": [ - "dom", - "es6", - "es7" - ], - "resolveJsonModule": true, - "esModuleInterop": true, - "isolatedModules": true, "declaration": true, - "typeRoots": [ - "./node_modules/@types" - ] + "sourceMap": true, + "noImplicitAny": false, + "strictNullChecks": false, + "strict": false } -} \ No newline at end of file +}