From 13204c6955bc36a27ad781caaa1e9f19ca2a2159 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sun, 14 Jan 2018 15:37:00 +0000 Subject: [PATCH] Always include destructuring transform (#3788) * Always include destructuring transform * Fix lint --- .../kitchensink/src/features/syntax/ObjectDestructuring.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js b/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js index be519175f69..14b06f7a4cc 100644 --- a/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js +++ b/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js @@ -40,7 +40,9 @@ export default class extends Component { return (
{this.state.users.map(user => { - const { id, name } = user; + const { id, ...rest } = user; + // eslint-disable-next-line no-unused-vars + const [{ name, ...innerRest }] = [{ ...rest }]; return
{name}
; })}