Chore: Remove unused/deprecated @types definitions (#59888)

* remove @types/rc-tree, @types/classnames

* remove @types/rc-time-picker

* remove @types/reselect

* remove @types/testing-library__react-hooks

* only include known package.json's
This commit is contained in:
Ashley Harrison 2022-12-07 10:10:59 +00:00 committed by GitHub
parent dd406e887b
commit 2b3c86d201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 98 deletions

View File

@ -30,6 +30,7 @@
"react-dom", "react-dom",
"react-test-renderer" "react-test-renderer"
], ],
"includePaths": ["package.json", "packages/*"],
"ignorePaths": ["packages/grafana-toolkit/package.json", "emails/**", "plugins-bundled/**", "**/mocks/**"], "ignorePaths": ["packages/grafana-toolkit/package.json", "emails/**", "plugins-bundled/**", "**/mocks/**"],
"labels": ["area/frontend", "dependencies", "no-backport", "no-changelog"], "labels": ["area/frontend", "dependencies", "no-backport", "no-changelog"],
"packageRules": [ "packageRules": [

View File

@ -111,7 +111,6 @@
"@testing-library/user-event": "14.4.3", "@testing-library/user-event": "14.4.3",
"@types/angular": "1.8.4", "@types/angular": "1.8.4",
"@types/angular-route": "1.7.2", "@types/angular-route": "1.7.2",
"@types/classnames": "2.3.0",
"@types/common-tags": "^1.8.0", "@types/common-tags": "^1.8.0",
"@types/d3": "7.4.0", "@types/d3": "7.4.0",
"@types/d3-force": "^2.1.0", "@types/d3-force": "^2.1.0",
@ -137,7 +136,6 @@
"@types/papaparse": "5.3.5", "@types/papaparse": "5.3.5",
"@types/pluralize": "^0.0.29", "@types/pluralize": "^0.0.29",
"@types/prismjs": "1.26.0", "@types/prismjs": "1.26.0",
"@types/rc-time-picker": "3.4.1",
"@types/react": "17.0.42", "@types/react": "17.0.42",
"@types/react-beautiful-dnd": "13.1.2", "@types/react-beautiful-dnd": "13.1.2",
"@types/react-dom": "17.0.14", "@types/react-dom": "17.0.14",
@ -152,13 +150,11 @@
"@types/react-window": "1.8.5", "@types/react-window": "1.8.5",
"@types/react-window-infinite-loader": "^1", "@types/react-window-infinite-loader": "^1",
"@types/redux-mock-store": "1.0.3", "@types/redux-mock-store": "1.0.3",
"@types/reselect": "2.2.0",
"@types/semver": "7.3.13", "@types/semver": "7.3.13",
"@types/slate": "0.47.11", "@types/slate": "0.47.11",
"@types/slate-plain-serializer": "0.7.2", "@types/slate-plain-serializer": "0.7.2",
"@types/slate-react": "0.22.9", "@types/slate-react": "0.22.9",
"@types/testing-library__jest-dom": "5.14.5", "@types/testing-library__jest-dom": "5.14.5",
"@types/testing-library__react-hooks": "^3.2.0",
"@types/tinycolor2": "1.4.3", "@types/tinycolor2": "1.4.3",
"@types/uuid": "8.3.4", "@types/uuid": "8.3.4",
"@typescript-eslint/eslint-plugin": "5.42.0", "@typescript-eslint/eslint-plugin": "5.42.0",
@ -283,7 +279,6 @@
"@sentry/browser": "6.19.7", "@sentry/browser": "6.19.7",
"@sentry/types": "6.19.7", "@sentry/types": "6.19.7",
"@sentry/utils": "6.19.7", "@sentry/utils": "6.19.7",
"@types/rc-tree": "^3.0.0",
"@types/react-resizable": "3.0.3", "@types/react-resizable": "3.0.3",
"@types/webpack-env": "1.18.0", "@types/webpack-env": "1.18.0",
"@visx/event": "2.6.0", "@visx/event": "2.6.0",

View File

@ -78,7 +78,6 @@
"@types/react-dom": "17.0.14", "@types/react-dom": "17.0.14",
"@types/sinon": "10.0.13", "@types/sinon": "10.0.13",
"@types/testing-library__jest-dom": "5.14.5", "@types/testing-library__jest-dom": "5.14.5",
"@types/testing-library__react-hooks": "^3.2.0",
"@types/tinycolor2": "1.4.3", "@types/tinycolor2": "1.4.3",
"esbuild": "0.15.12", "esbuild": "0.15.12",
"react": "17.0.2", "react": "17.0.2",

View File

@ -140,7 +140,6 @@
"@testing-library/react": "12.1.4", "@testing-library/react": "12.1.4",
"@testing-library/react-hooks": "8.0.1", "@testing-library/react-hooks": "8.0.1",
"@testing-library/user-event": "14.4.3", "@testing-library/user-event": "14.4.3",
"@types/classnames": "2.3.0",
"@types/common-tags": "^1.8.0", "@types/common-tags": "^1.8.0",
"@types/d3": "7.4.0", "@types/d3": "7.4.0",
"@types/enzyme": "3.10.12", "@types/enzyme": "3.10.12",
@ -168,7 +167,6 @@
"@types/slate-plain-serializer": "0.7.2", "@types/slate-plain-serializer": "0.7.2",
"@types/slate-react": "0.22.9", "@types/slate-react": "0.22.9",
"@types/testing-library__jest-dom": "5.14.5", "@types/testing-library__jest-dom": "5.14.5",
"@types/testing-library__react-hooks": "^3.2.0",
"@types/tinycolor2": "1.4.3", "@types/tinycolor2": "1.4.3",
"@types/uuid": "8.3.4", "@types/uuid": "8.3.4",
"@wojtekmaj/enzyme-adapter-react-17": "0.7.0", "@wojtekmaj/enzyme-adapter-react-17": "0.7.0",

View File

@ -13,7 +13,6 @@
"@testing-library/jest-dom": "5.16.5", "@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "12.1.4", "@testing-library/react": "12.1.4",
"@testing-library/user-event": "14.4.3", "@testing-library/user-event": "14.4.3",
"@types/classnames": "^2.2.7",
"@types/deep-freeze": "^0.1.1", "@types/deep-freeze": "^0.1.1",
"@types/enzyme": "3.10.12", "@types/enzyme": "3.10.12",
"@types/hoist-non-react-statics": "^3.3.1", "@types/hoist-non-react-statics": "^3.3.1",
@ -22,7 +21,6 @@
"@types/prop-types": "15.7.5", "@types/prop-types": "15.7.5",
"@types/react": "17.0.42", "@types/react": "17.0.42",
"@types/react-icons": "2.2.7", "@types/react-icons": "2.2.7",
"@types/reselect": "2.2.0",
"@types/slate-react": "0.22.9", "@types/slate-react": "0.22.9",
"@types/testing-library__jest-dom": "5.14.5", "@types/testing-library__jest-dom": "5.14.5",
"@types/tinycolor2": "1.4.3", "@types/tinycolor2": "1.4.3",

View File

@ -4326,7 +4326,6 @@ __metadata:
"@types/react-dom": 17.0.14 "@types/react-dom": 17.0.14
"@types/sinon": 10.0.13 "@types/sinon": 10.0.13
"@types/testing-library__jest-dom": 5.14.5 "@types/testing-library__jest-dom": 5.14.5
"@types/testing-library__react-hooks": ^3.2.0
"@types/tinycolor2": 1.4.3 "@types/tinycolor2": 1.4.3
d3-interpolate: 1.4.0 d3-interpolate: 1.4.0
date-fns: 2.29.3 date-fns: 2.29.3
@ -4719,7 +4718,6 @@ __metadata:
"@testing-library/react": 12.1.4 "@testing-library/react": 12.1.4
"@testing-library/react-hooks": 8.0.1 "@testing-library/react-hooks": 8.0.1
"@testing-library/user-event": 14.4.3 "@testing-library/user-event": 14.4.3
"@types/classnames": 2.3.0
"@types/common-tags": ^1.8.0 "@types/common-tags": ^1.8.0
"@types/d3": 7.4.0 "@types/d3": 7.4.0
"@types/enzyme": 3.10.12 "@types/enzyme": 3.10.12
@ -4747,7 +4745,6 @@ __metadata:
"@types/slate-plain-serializer": 0.7.2 "@types/slate-plain-serializer": 0.7.2
"@types/slate-react": 0.22.9 "@types/slate-react": 0.22.9
"@types/testing-library__jest-dom": 5.14.5 "@types/testing-library__jest-dom": 5.14.5
"@types/testing-library__react-hooks": ^3.2.0
"@types/tinycolor2": 1.4.3 "@types/tinycolor2": 1.4.3
"@types/uuid": 8.3.4 "@types/uuid": 8.3.4
"@wojtekmaj/enzyme-adapter-react-17": 0.7.0 "@wojtekmaj/enzyme-adapter-react-17": 0.7.0
@ -4964,7 +4961,6 @@ __metadata:
"@testing-library/jest-dom": 5.16.5 "@testing-library/jest-dom": 5.16.5
"@testing-library/react": 12.1.4 "@testing-library/react": 12.1.4
"@testing-library/user-event": 14.4.3 "@testing-library/user-event": 14.4.3
"@types/classnames": ^2.2.7
"@types/deep-freeze": ^0.1.1 "@types/deep-freeze": ^0.1.1
"@types/enzyme": 3.10.12 "@types/enzyme": 3.10.12
"@types/hoist-non-react-statics": ^3.3.1 "@types/hoist-non-react-statics": ^3.3.1
@ -4973,7 +4969,6 @@ __metadata:
"@types/prop-types": 15.7.5 "@types/prop-types": 15.7.5
"@types/react": 17.0.42 "@types/react": 17.0.42
"@types/react-icons": 2.2.7 "@types/react-icons": 2.2.7
"@types/reselect": 2.2.0
"@types/slate-react": 0.22.9 "@types/slate-react": 0.22.9
"@types/testing-library__jest-dom": 5.14.5 "@types/testing-library__jest-dom": 5.14.5
"@types/tinycolor2": 1.4.3 "@types/tinycolor2": 1.4.3
@ -10207,15 +10202,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/classnames@npm:2.3.0, @types/classnames@npm:^2.2.7":
version: 2.3.0
resolution: "@types/classnames@npm:2.3.0"
dependencies:
classnames: "*"
checksum: e1bd6de60fc5e4ead601838078b10f378d6a66ad21112922856de59a1f450b1361f597aa3ca34f2cc33bc030f950112872fddfde43c5189bec89737a8b237f24
languageName: node
linkType: hard
"@types/clean-css@npm:*": "@types/clean-css@npm:*":
version: 4.2.5 version: 4.2.5
resolution: "@types/clean-css@npm:4.2.5" resolution: "@types/clean-css@npm:4.2.5"
@ -11333,25 +11319,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/rc-time-picker@npm:3.4.1":
version: 3.4.1
resolution: "@types/rc-time-picker@npm:3.4.1"
dependencies:
"@types/react": "*"
moment: ^2.19.4
checksum: 26d43beb8c5fdbd1932996bee63d3f854ca8e931915463106cbb382d98efcc81a1140f7fda004b6652ca12e87b211b1b70302b854c5ce41e3f87e68537181c06
languageName: node
linkType: hard
"@types/rc-tree@npm:^3.0.0":
version: 3.0.0
resolution: "@types/rc-tree@npm:3.0.0"
dependencies:
rc-tree: "*"
checksum: bf8e599c5a62c8f8d91fbecdc210119c4c2ad07bdfb8adecb4d1cce9cb967fd6856ad2940431b8fdc9993cd261f127c33588f2988bfc7bc6438993de1c6eeff3
languageName: node
linkType: hard
"@types/react-beautiful-dnd@npm:13.1.2": "@types/react-beautiful-dnd@npm:13.1.2":
version: 13.1.2 version: 13.1.2
resolution: "@types/react-beautiful-dnd@npm:13.1.2" resolution: "@types/react-beautiful-dnd@npm:13.1.2"
@ -11511,7 +11478,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/react-test-renderer@npm:*, @types/react-test-renderer@npm:17.0.1": "@types/react-test-renderer@npm:17.0.1":
version: 17.0.1 version: 17.0.1
resolution: "@types/react-test-renderer@npm:17.0.1" resolution: "@types/react-test-renderer@npm:17.0.1"
dependencies: dependencies:
@ -11624,15 +11591,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/reselect@npm:2.2.0":
version: 2.2.0
resolution: "@types/reselect@npm:2.2.0"
dependencies:
reselect: "*"
checksum: 034b5796c16316b60561fca01503111ecddde638178efc20c7293f07ef7d9cbc2bffce267899381f630fa9ffef3bfed54384fe87756e97132b4dc2881f585e19
languageName: node
linkType: hard
"@types/resolve@npm:1.20.2": "@types/resolve@npm:1.20.2":
version: 1.20.2 version: 1.20.2
resolution: "@types/resolve@npm:1.20.2" resolution: "@types/resolve@npm:1.20.2"
@ -11821,15 +11779,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/testing-library__react-hooks@npm:^3.2.0":
version: 3.4.1
resolution: "@types/testing-library__react-hooks@npm:3.4.1"
dependencies:
"@types/react-test-renderer": "*"
checksum: f32a5659330a7c2e555bffa74807f7331b1d2fcdd5fe4c08cc9130a0a12826f5f1c5bdf3210e7b2b4c9b774bddecc283171a347f78dc98d28836b0f773583a03
languageName: node
linkType: hard
"@types/through@npm:*": "@types/through@npm:*":
version: 0.0.30 version: 0.0.30
resolution: "@types/through@npm:0.0.30" resolution: "@types/through@npm:0.0.30"
@ -15486,13 +15435,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"classnames@npm:*, classnames@npm:2.x, classnames@npm:^2.2.1, classnames@npm:^2.2.5, classnames@npm:^2.2.6, classnames@npm:^2.3.1":
version: 2.3.1
resolution: "classnames@npm:2.3.1"
checksum: 14db8889d56c267a591f08b0834989fe542d47fac659af5a539e110cc4266694e8de86e4e3bbd271157dbd831361310a8293e0167141e80b0f03a0f175c80960
languageName: node
linkType: hard
"classnames@npm:2.3.2, classnames@npm:^2.3.2": "classnames@npm:2.3.2, classnames@npm:^2.3.2":
version: 2.3.2 version: 2.3.2
resolution: "classnames@npm:2.3.2" resolution: "classnames@npm:2.3.2"
@ -15500,6 +15442,13 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"classnames@npm:2.x, classnames@npm:^2.2.1, classnames@npm:^2.2.5, classnames@npm:^2.2.6, classnames@npm:^2.3.1":
version: 2.3.1
resolution: "classnames@npm:2.3.1"
checksum: 14db8889d56c267a591f08b0834989fe542d47fac659af5a539e110cc4266694e8de86e4e3bbd271157dbd831361310a8293e0167141e80b0f03a0f175c80960
languageName: node
linkType: hard
"clean-css@npm:5.2.0": "clean-css@npm:5.2.0":
version: 5.2.0 version: 5.2.0
resolution: "clean-css@npm:5.2.0" resolution: "clean-css@npm:5.2.0"
@ -21560,7 +21509,6 @@ __metadata:
"@testing-library/user-event": 14.4.3 "@testing-library/user-event": 14.4.3
"@types/angular": 1.8.4 "@types/angular": 1.8.4
"@types/angular-route": 1.7.2 "@types/angular-route": 1.7.2
"@types/classnames": 2.3.0
"@types/common-tags": ^1.8.0 "@types/common-tags": ^1.8.0
"@types/d3": 7.4.0 "@types/d3": 7.4.0
"@types/d3-force": ^2.1.0 "@types/d3-force": ^2.1.0
@ -21586,8 +21534,6 @@ __metadata:
"@types/papaparse": 5.3.5 "@types/papaparse": 5.3.5
"@types/pluralize": ^0.0.29 "@types/pluralize": ^0.0.29
"@types/prismjs": 1.26.0 "@types/prismjs": 1.26.0
"@types/rc-time-picker": 3.4.1
"@types/rc-tree": ^3.0.0
"@types/react": 17.0.42 "@types/react": 17.0.42
"@types/react-beautiful-dnd": 13.1.2 "@types/react-beautiful-dnd": 13.1.2
"@types/react-dom": 17.0.14 "@types/react-dom": 17.0.14
@ -21603,13 +21549,11 @@ __metadata:
"@types/react-window": 1.8.5 "@types/react-window": 1.8.5
"@types/react-window-infinite-loader": ^1 "@types/react-window-infinite-loader": ^1
"@types/redux-mock-store": 1.0.3 "@types/redux-mock-store": 1.0.3
"@types/reselect": 2.2.0
"@types/semver": 7.3.13 "@types/semver": 7.3.13
"@types/slate": 0.47.11 "@types/slate": 0.47.11
"@types/slate-plain-serializer": 0.7.2 "@types/slate-plain-serializer": 0.7.2
"@types/slate-react": 0.22.9 "@types/slate-react": 0.22.9
"@types/testing-library__jest-dom": 5.14.5 "@types/testing-library__jest-dom": 5.14.5
"@types/testing-library__react-hooks": ^3.2.0
"@types/tinycolor2": 1.4.3 "@types/tinycolor2": 1.4.3
"@types/uuid": 8.3.4 "@types/uuid": 8.3.4
"@types/webpack-env": 1.18.0 "@types/webpack-env": 1.18.0
@ -27864,7 +27808,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"moment@npm:2.29.4, moment@npm:2.x, moment@npm:>= 2.9.0, moment@npm:^2.19.4, moment@npm:^2.20.1, moment@npm:^2.29.4": "moment@npm:2.29.4, moment@npm:2.x, moment@npm:>= 2.9.0, moment@npm:^2.20.1, moment@npm:^2.29.4":
version: 2.29.4 version: 2.29.4
resolution: "moment@npm:2.29.4" resolution: "moment@npm:2.29.4"
checksum: 0ec3f9c2bcba38dc2451b1daed5daded747f17610b92427bebe1d08d48d8b7bdd8d9197500b072d14e326dd0ccf3e326b9e3d07c5895d3d49e39b6803b76e80e checksum: 0ec3f9c2bcba38dc2451b1daed5daded747f17610b92427bebe1d08d48d8b7bdd8d9197500b072d14e326dd0ccf3e326b9e3d07c5895d3d49e39b6803b76e80e
@ -31814,22 +31758,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"rc-tree@npm:*":
version: 5.6.5
resolution: "rc-tree@npm:5.6.5"
dependencies:
"@babel/runtime": ^7.10.1
classnames: 2.x
rc-motion: ^2.0.1
rc-util: ^5.16.1
rc-virtual-list: ^3.4.8
peerDependencies:
react: "*"
react-dom: "*"
checksum: 107efb7dbf6d44faf11072c4c53277f234ecd8d0c5a5cb387d5d9ac18b96098fa9cef3312f52589930c5562fd708f4da50f3b7880b27b2405c6ac558dce9f037
languageName: node
linkType: hard
"rc-tree@npm:5.7.0, rc-tree@npm:~5.7.0": "rc-tree@npm:5.7.0, rc-tree@npm:~5.7.0":
version: 5.7.0 version: 5.7.0
resolution: "rc-tree@npm:5.7.0" resolution: "rc-tree@npm:5.7.0"
@ -33660,13 +33588,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"reselect@npm:*":
version: 4.1.0
resolution: "reselect@npm:4.1.0"
checksum: ef150c3cccf8c43f7e5f9f35b0f826f82287e84fb5219928b1c7a4c8e99297f004ecd27e4888334115d35c82ab20bc2c95987244d12253480d256a1241495ad2
languageName: node
linkType: hard
"reselect@npm:4.1.6": "reselect@npm:4.1.6":
version: 4.1.6 version: 4.1.6
resolution: "reselect@npm:4.1.6" resolution: "reselect@npm:4.1.6"