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

@@ -19,7 +19,7 @@ const renderBreadcrumb = (newsletterType) => {
const initializeEditor = (config) => {
const editorContainer = document.getElementById('mailpoet_editor');
const getUrlParam = param => (document.location.search.split(`${param}=`)[1] || '').split('&')[0];
const getUrlParam = (param) => (document.location.search.split(`${param}=`)[1] || '').split('&')[0];
if (!editorContainer || !window.EditorApplication) return;
@@ -65,7 +65,7 @@ const initializeEditor = (config) => {
.fail((pauseFailResponse) => {
if (pauseFailResponse.errors.length > 0) {
MailPoet.Notice.error(
pauseFailResponse.errors.map(error => error.message),
pauseFailResponse.errors.map((error) => error.message),
{ scroll: true, static: true }
);
}
@@ -75,7 +75,7 @@ const initializeEditor = (config) => {
.fail((response) => {
if (response.errors.length > 0) {
MailPoet.Notice.error(
response.errors.map(error => error.message),
response.errors.map((error) => error.message),
{ scroll: true, static: true }
);
}