naomi icon indicating copy to clipboard operation
naomi copied to clipboard

Multiline destructured props are not highlighted as props/arguments

Open connebs opened this issue 6 years ago • 0 comments

When destructured props are split across multiple lines, they are not highlighted as props/arguments.

Works (highlights prop1, prop2, and prop3 as arguments:

const MyComponent = ({prop1, prop2, prop3}) => ()

Fails (does not highlight the props at all):

const MyComponent = ({
  prop1,
  prop2,
  prop3
}) => ()

connebs avatar May 01 '19 15:05 connebs