From 27e9396f1b8abd986c17155609e14c0913888f72 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 23 Jul 2019 17:10:32 +0000 Subject: [PATCH 1/2] Bump eslint-plugin-react from 7.13.0 to 7.14.3 Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.13.0 to 7.14.3. - [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.13.0...v7.14.3) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c5ba56871f727a..aa253d1d81f5b5 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ "eslint-plugin-import": "^2.18.2", "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-mocha": "^6.0.0", - "eslint-plugin-react": "^7.4.0", + "eslint-plugin-react": "^7.14.3", "eslint-plugin-react-hooks": "^1.6.1", "expect-puppeteer": "^4.3.0", "fs-extra": "^7.0.0", diff --git a/yarn.lock b/yarn.lock index 97acf74467a24e..bdca9f7e67ace6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5833,16 +5833,18 @@ eslint-plugin-react-hooks@^1.6.1: resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.6.1.tgz#3c66a5515ea3e0a221ffc5d4e75c971c217b1a4c" integrity sha512-wHhmGJyVuijnYIJXZJHDUF2WM+rJYTjulUTqF9k61d3BTk8etydz+M4dXUVH7M76ZRS85rqBTCx0Es/lLsrjnA== -eslint-plugin-react@^7.4.0: - version "7.13.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.13.0.tgz#bc13fd7101de67996ea51b33873cd9dc2b7e5758" - integrity sha512-uA5LrHylu8lW/eAH3bEQe9YdzpPaFd9yAJTwTi/i/BKTD7j6aQMKVAdGM/ML72zD6womuSK7EiGtMKuK06lWjQ== +eslint-plugin-react@^7.14.3: + version "7.14.3" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.14.3.tgz#911030dd7e98ba49e1b2208599571846a66bdf13" + integrity sha512-EzdyyBWC4Uz2hPYBiEJrKCUi2Fn+BJ9B/pJQcjw5X+x/H2Nm59S4MJIvL4O5NEE0+WbnQwEBxWY03oUk+Bc3FA== dependencies: array-includes "^3.0.3" doctrine "^2.1.0" has "^1.0.3" jsx-ast-utils "^2.1.0" + object.entries "^1.1.0" object.fromentries "^2.0.0" + object.values "^1.1.0" prop-types "^15.7.2" resolve "^1.10.1" From 090abfb7f638be3a2fca940c511d3f16fb362c3d Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Tue, 23 Jul 2019 19:23:21 +0200 Subject: [PATCH 2/2] Fix lint errors --- docs/src/modules/components/AppDrawer.js | 5 +++-- packages/material-ui/src/Popover/Popover.js | 1 + packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/src/modules/components/AppDrawer.js b/docs/src/modules/components/AppDrawer.js index 926bc4eccb8ddd..53129edd61b5ab 100644 --- a/docs/src/modules/components/AppDrawer.js +++ b/docs/src/modules/components/AppDrawer.js @@ -76,8 +76,9 @@ const styles = theme => ({ }, }); -// eslint-disable-next-line react/prop-types -function renderNavItems({ pages, ...params }) { +function renderNavItems(options) { + const { pages, ...params } = options; + return ( {pages.reduce( diff --git a/packages/material-ui/src/Popover/Popover.js b/packages/material-ui/src/Popover/Popover.js index 3a78ee86c77b9c..89df9268b7eb5b 100644 --- a/packages/material-ui/src/Popover/Popover.js +++ b/packages/material-ui/src/Popover/Popover.js @@ -365,6 +365,7 @@ const Popover = React.forwardRef(function Popover(props, ref) { elevation={elevation} ref={handlePaperRef} {...PaperProps} + // eslint-disable-next-line react/prop-types className={clsx(classes.paper, PaperProps.className)} > {children} diff --git a/packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js b/packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js index b04e4b021d478d..dfeb8a6f753e07 100644 --- a/packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js +++ b/packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js @@ -487,6 +487,7 @@ SwipeableDrawer.propTypes = { */ PaperProps: PropTypes.shape({ component: elementTypeAcceptingRef, + style: PropTypes.object, }), /** * Properties applied to the swipe area element.