From 139dc360b9ee97cfde9b9f5ae3ae8331284577f9 Mon Sep 17 00:00:00 2001 From: Louise Davies Date: Wed, 25 Jan 2023 17:01:48 +0000 Subject: [PATCH] Use yarn resolution to pin @typescript-eslint packages Causes eslint issues if multiple versions are detected --- package.json | 6 ++++-- yarn.lock | 57 ---------------------------------------------------- 2 files changed, 4 insertions(+), 59 deletions(-) diff --git a/package.json b/package.json index b4d327200..57c8d22a5 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "husky": "8.0.1" }, "resolutions": { - "@types/react": "17.0.39" + "@types/react": "17.0.39", + "@typescript-eslint/eslint-plugin": "5.48.2", + "@typescript-eslint/parser": "5.48.2" }, "scripts": { "build": "yarn workspaces foreach --interlaced --verbose --parallel --jobs 3 --exclude datagateway-common run build", @@ -24,4 +26,4 @@ "postinstall": "husky install" }, "packageManager": "yarn@3.3.0" -} +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 1ae29882c..17eb62b1e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3805,29 +3805,6 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:^5.5.0": - version: 5.49.0 - resolution: "@typescript-eslint/eslint-plugin@npm:5.49.0" - dependencies: - "@typescript-eslint/scope-manager": 5.49.0 - "@typescript-eslint/type-utils": 5.49.0 - "@typescript-eslint/utils": 5.49.0 - debug: ^4.3.4 - ignore: ^5.2.0 - natural-compare-lite: ^1.4.0 - regexpp: ^3.2.0 - semver: ^7.3.7 - tsutils: ^3.21.0 - peerDependencies: - "@typescript-eslint/parser": ^5.0.0 - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - peerDependenciesMeta: - typescript: - optional: true - checksum: 15423cd9fde1ac3f8ba34526a07e537464e70463f1af784be5567fdc78e5745352fa0a2c3be0c13d066bc4b9720b5fa438d64647f624d29722eb4f158c039dcc - languageName: node - linkType: hard - "@typescript-eslint/experimental-utils@npm:^5.0.0": version: 5.49.0 resolution: "@typescript-eslint/experimental-utils@npm:5.49.0" @@ -3856,23 +3833,6 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/parser@npm:^5.5.0": - version: 5.49.0 - resolution: "@typescript-eslint/parser@npm:5.49.0" - dependencies: - "@typescript-eslint/scope-manager": 5.49.0 - "@typescript-eslint/types": 5.49.0 - "@typescript-eslint/typescript-estree": 5.49.0 - debug: ^4.3.4 - peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - peerDependenciesMeta: - typescript: - optional: true - checksum: 87b3760cfc29b3edd3d28fe0d5e9e5a3833d60398d7779ecc657b9e3bfec624cd464176e26b24b0761fb79cc88daddae19560340f91119c4856b91f9663594dd - languageName: node - linkType: hard - "@typescript-eslint/scope-manager@npm:5.48.2": version: 5.48.2 resolution: "@typescript-eslint/scope-manager@npm:5.48.2" @@ -3910,23 +3870,6 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:5.49.0": - version: 5.49.0 - resolution: "@typescript-eslint/type-utils@npm:5.49.0" - dependencies: - "@typescript-eslint/typescript-estree": 5.49.0 - "@typescript-eslint/utils": 5.49.0 - debug: ^4.3.4 - tsutils: ^3.21.0 - peerDependencies: - eslint: "*" - peerDependenciesMeta: - typescript: - optional: true - checksum: 9dcee0a21cfdb3549e2305120535af5ab2c5d0cafdd410827e79d7548f8fc4e7da7cbb77a4338ade8b8b8aaf246fee56b919f1857931bbe2ac5df2fbb5e62ee6 - languageName: node - linkType: hard - "@typescript-eslint/types@npm:5.48.2": version: 5.48.2 resolution: "@typescript-eslint/types@npm:5.48.2"