Skip to content

Split format with objects inside React properties #7

Open
@diego3g

Description

@diego3g

While working with React there are sometimes we need to attach objects to tags properties/attributes and when i try to split the attributes with the extension it converts this:

<Button size="sm" fontSize="xs" width="4" bgColor="gray.700" _hover={{ bgColor: 'gray.500' }}>2</Button>

To:

<Button
  size="sm"
  fontSize="xs"
  width="4"
  bgColor="gray.700"
  _hover={{
  bgColor:
  'gray.500'
  }}>2</Button
>

While, for me, the best approach should be:

<Button
  size="sm"
  fontSize="xs"
  width="4"
  bgColor="gray.700"
  _hover={{
    bgColor: 'gray.500'
  }}
>
  2
</Button>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions