From cbddd5bfd7b9532a319148d1d1a63e52ab137d68 Mon Sep 17 00:00:00 2001 From: merceyz Date: Mon, 24 Jan 2022 15:38:01 +0100 Subject: [PATCH] fix(eslint-config): add optional peer dependency `typescript` --- package-lock.json | 8 +++++++- packages/eslint-config-react-app/package.json | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6dfa2abdd0b..84136cc1345 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29871,7 +29871,13 @@ "node": ">=14.0.0" }, "peerDependencies": { - "eslint": "^8.0.0" + "eslint": "^8.0.0", + "typescript": "^3.2.1 || ^4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, "packages/react-app-polyfill": { diff --git a/packages/eslint-config-react-app/package.json b/packages/eslint-config-react-app/package.json index a658e95648d..2cef1444dac 100644 --- a/packages/eslint-config-react-app/package.json +++ b/packages/eslint-config-react-app/package.json @@ -17,7 +17,13 @@ "jest.js" ], "peerDependencies": { - "eslint": "^8.0.0" + "eslint": "^8.0.0", + "typescript": "^3.2.1 || ^4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } }, "dependencies": { "@babel/core": "^7.16.0",