v12.1.0
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 />}>