Add eslint rule to require parentheses in arrow functions
[MAILPOET-2162]
This commit is contained in:
committed by
Jack Kitterhing
parent
a1bf7ec23f
commit
a78562c774
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import MailPoet from 'mailpoet';
|
||||
|
||||
const PrintBoolean = props => (
|
||||
const PrintBoolean = (props) => (
|
||||
<span>
|
||||
{(props.children === true && props.truthy)
|
||||
|| (props.children === false && props.falsy)
|
||||
|
Reference in New Issue
Block a user