Skip to content

v12.1.0

Compare
Choose a tag to compare
@seek-oss-ci seek-oss-ci released this 09 Nov 22:22
· 23 commits to master since this release
efb504e

Minor Changes

  • Adds react/jsx-curly-brace-presence as an error. (#130)
    This removes unnecessary braces around strings in props and children.

    It also enforces braces around expressions in props and children.

    Examples

    // Unecessary braces around string prop
    - <Column width={'content'}>
    + <Column width="content">
    // Unecessary braces around string child
    - <Text>{'Hello'}</Text>
    + <Text>Hello</Text>
    // Mandatory braces around prop expression
    - <Button icon=<IconSearch />>
    + <Button icon={<IconSearch />}>