Add eslint rule to require parentheses in arrow functions
[MAILPOET-2162]
This commit is contained in:
committed by
Jack Kitterhing
parent
a1bf7ec23f
commit
a78562c774
@@ -12,7 +12,7 @@ const TasksList = (props) => {
|
||||
<thead><TaskListLabelsRow show_scheduled_at={props.show_scheduled_at} /></thead>
|
||||
<tbody>
|
||||
{
|
||||
props.tasks.length ? props.tasks.map(task => (
|
||||
props.tasks.length ? props.tasks.map((task) => (
|
||||
<TaskListDataRow
|
||||
key={task.id}
|
||||
task={task}
|
||||
|
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import MailPoet from 'mailpoet';
|
||||
|
||||
const TasksListDataRow = props => (
|
||||
const TasksListDataRow = (props) => (
|
||||
<tr>
|
||||
<td className="column column-primary">
|
||||
{ props.task.id }
|
||||
|
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import MailPoet from 'mailpoet';
|
||||
|
||||
const TasksListLabelsRow = props => (
|
||||
const TasksListLabelsRow = (props) => (
|
||||
<tr>
|
||||
<th className="row-title">Id</th>
|
||||
<th className="row-title">{MailPoet.I18n.t('type')}</th>
|
||||
|
Reference in New Issue
Block a user