From 8fe29cffda41456bb9811eec1d680a97ff430d0c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Mar 2022 16:43:19 -0700 Subject: [PATCH] build(deps-dev): bump eslint-plugin-react from 7.28.0 to 7.29.2 in /web/app (#7973) * build(deps-dev): bump eslint-plugin-react in /web/app Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.28.0 to 7.29.2. - [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases) - [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.28.0...v7.29.2) --- updated-dependencies: - dependency-name: eslint-plugin-react dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Fixed react/forbid-prop-types lint errors Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alejandro Pedraza --- web/app/js/components/NetworkGraph.jsx | 2 ++ web/app/js/components/StatusTable.jsx | 7 ++++++- web/app/package.json | 2 +- web/app/yarn.lock | 20 ++++++++++---------- 4 files changed, 19 insertions(+), 12 deletions(-) diff --git a/web/app/js/components/NetworkGraph.jsx b/web/app/js/components/NetworkGraph.jsx index d3ac053f0..04345dd53 100644 --- a/web/app/js/components/NetworkGraph.jsx +++ b/web/app/js/components/NetworkGraph.jsx @@ -210,6 +210,8 @@ NetworkGraphBase.defaultProps = { NetworkGraphBase.propTypes = { data: PropTypes.arrayOf(metricsPropType.isRequired).isRequired, + /* these objects have a lot of stuff */ + /* eslint-disable react/forbid-prop-types */ deployments: PropTypes.arrayOf(PropTypes.object), }; diff --git a/web/app/js/components/StatusTable.jsx b/web/app/js/components/StatusTable.jsx index 56c961022..358fbf315 100644 --- a/web/app/js/components/StatusTable.jsx +++ b/web/app/js/components/StatusTable.jsx @@ -124,7 +124,12 @@ const StatusTable = function({ classes, statusColumnTitle, data }) { StatusTable.propTypes = { data: PropTypes.arrayOf(PropTypes.shape({ name: PropTypes.string.isRequired, - pods: PropTypes.arrayOf(PropTypes.object).isRequired, // TODO: What's the real shape here. + pods: PropTypes.shape({ + name: PropTypes.string.isRequired, + value: PropTypes.string.isRequired, + uptime: PropTypes.string.isRequired, + uptimeSec: PropTypes.number.isRequired, + }).isRequired, added: PropTypes.bool, })).isRequired, statusColumnTitle: PropTypes.string.isRequired, diff --git a/web/app/package.json b/web/app/package.json index 0ecd8a449..fc6ee63e4 100644 --- a/web/app/package.json +++ b/web/app/package.json @@ -64,7 +64,7 @@ "eslint-plugin-import": "^2.25.4", "eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-promise": "^6.0.0", - "eslint-plugin-react": "^7.28.0", + "eslint-plugin-react": "^7.29.2", "eslint-plugin-react-hooks": "^4.3.0", "eslint-webpack-plugin": "^3.1.1", "file-loader": "^6.2.0", diff --git a/web/app/yarn.lock b/web/app/yarn.lock index dffab6013..9068cf8c6 100644 --- a/web/app/yarn.lock +++ b/web/app/yarn.lock @@ -3706,22 +3706,22 @@ eslint-plugin-react-hooks@^4.3.0: resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.3.0.tgz#318dbf312e06fab1c835a4abef00121751ac1172" integrity sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA== -eslint-plugin-react@^7.28.0: - version "7.28.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.28.0.tgz#8f3ff450677571a659ce76efc6d80b6a525adbdf" - integrity sha512-IOlFIRHzWfEQQKcAD4iyYDndHwTQiCMcJVJjxempf203jnNLUnW34AXLrV33+nEXoifJE2ZEGmcjKPL8957eSw== +eslint-plugin-react@^7.29.2: + version "7.29.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.29.2.tgz#2d4da69d30d0a736efd30890dc6826f3e91f3f7c" + integrity sha512-ypEBTKOy5liFQXZWMchJ3LN0JX1uPI6n7MN7OPHKacqXAxq5gYC30TdO7wqGYQyxD1OrzpobdHC3hDmlRWDg9w== dependencies: array-includes "^3.1.4" array.prototype.flatmap "^1.2.5" doctrine "^2.1.0" estraverse "^5.3.0" jsx-ast-utils "^2.4.1 || ^3.0.0" - minimatch "^3.0.4" + minimatch "^3.1.2" object.entries "^1.1.5" object.fromentries "^2.0.5" object.hasown "^1.1.0" object.values "^1.1.5" - prop-types "^15.7.2" + prop-types "^15.8.1" resolve "^2.0.0-next.3" semver "^6.3.0" string.prototype.matchall "^4.0.6" @@ -5876,10 +5876,10 @@ minimalistic-assert@^1.0.0: resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== -minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== +minimatch@^3.0.4, minimatch@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== dependencies: brace-expansion "^1.1.7"