Add eslint rule to require parentheses in arrow functions

[MAILPOET-2162]
This commit is contained in:
Ján Mikláš
2019-07-31 10:58:56 +02:00
committed by Jack Kitterhing
parent a1bf7ec23f
commit a78562c774
78 changed files with 158 additions and 155 deletions

View File

@@ -16,7 +16,7 @@ const ExperimentalFeatures = () => {
}).fail((response) => {
if (response.errors.length > 0) {
MailPoet.Notice.error(
response.errors.map(error => error.message),
response.errors.map((error) => error.message),
{ scroll: true }
);
}
@@ -42,7 +42,7 @@ const ExperimentalFeatures = () => {
}).fail((response) => {
if (response.errors.length > 0) {
MailPoet.Notice.error(
response.errors.map(error => error.message),
response.errors.map((error) => error.message),
{ scroll: true }
);
}