From 5b62f57bd86574037088b2e57c3bfe5e15c94d6e Mon Sep 17 00:00:00 2001 From: skooch Date: Thu, 19 Oct 2023 01:41:53 +1100 Subject: [PATCH] Bump prettier and better defaults for tsconfig, remove dead type --- package-lock.json | 9 ++++++++- package.json | 3 ++- src/types.ts | 8 -------- tsconfig.json | 3 ++- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index b86d80a7..39a46e25 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "devDependencies": { "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", + "@tsconfig/recommended": "^1.0.3", "@types/eslint": "^8.44.5", "@types/node": "^20.8.6", "@types/node-fetch": "^2.6.6", @@ -30,7 +31,7 @@ "husky": "^8.0.1", "jest": "^29.0.1", "jsdoc": "^4.0.0", - "prettier": "^2.0.5", + "prettier": "^2.8.8", "typescript": "^5.2.2" } }, @@ -2875,6 +2876,12 @@ "@sinonjs/commons": "^3.0.0" } }, + "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/babel__core": { "version": "7.20.3", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.3.tgz", diff --git a/package.json b/package.json index f6fd5812..1c684547 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "devDependencies": { "@babel/preset-env": "^7.23.2", "@babel/preset-typescript": "^7.23.2", + "@tsconfig/recommended": "^1.0.3", "@types/eslint": "^8.44.5", "@types/node": "^20.8.6", "@types/node-fetch": "^2.6.6", @@ -47,7 +48,7 @@ "husky": "^8.0.1", "jest": "^29.0.1", "jsdoc": "^4.0.0", - "prettier": "^2.0.5", + "prettier": "^2.8.8", "typescript": "^5.2.2" }, "dependencies": { diff --git a/src/types.ts b/src/types.ts index ad651622..1c2cd3b0 100644 --- a/src/types.ts +++ b/src/types.ts @@ -7,14 +7,6 @@ export interface ApiEndpoint { export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' -export type RecursiveRecord = - | string - | boolean - | number - | symbol - | { [key: string]: RecursiveRecord } - | undefined - export type UserConfiguration = { baseUrl: string; apiKey: string } export type ApiParameterOptions = { diff --git a/tsconfig.json b/tsconfig.json index d414ff6b..d524ee5c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,8 @@ { + "extends": "@tsconfig/recommended/tsconfig.json", "compilerOptions": { "outDir": "./dist", - "declaration": true, + "composite": true, "strict": true, "types": [ "node"