Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split format with objects inside React properties #7

Open
diego3g opened this issue Mar 24, 2021 · 0 comments
Open

Split format with objects inside React properties #7

diego3g opened this issue Mar 24, 2021 · 0 comments

Comments

@diego3g
Copy link

diego3g commented Mar 24, 2021

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant