Fix eslint rules

[MAILPOET-1348]
This commit is contained in:
Pavel Dohnal
2018-04-18 15:35:08 +01:00
parent c20ff20f5c
commit afd801694d

View File

@@ -1,15 +1,8 @@
define( import MailPoet from 'mailpoet';
[ import Hooks from 'wp-js-hooks';
'mailpoet', import Scheduling from 'newsletters/types/welcome/scheduling.jsx';
'wp-js-hooks',
'newsletters/types/welcome/scheduling.jsx', let fields = [
],
(
MailPoet,
Hooks,
Scheduling
) => {
let fields = [
{ {
name: 'subject', name: 'subject',
label: MailPoet.I18n.t('subjectLine'), label: MailPoet.I18n.t('subjectLine'),
@@ -71,11 +64,11 @@ define(
}, },
], ],
}, },
]; ];
fields = Hooks.applyFilters('mailpoet_newsletters_3rd_step_fields', fields); fields = Hooks.applyFilters('mailpoet_newsletters_3rd_step_fields', fields);
return { module.export = {
getFields: function getFields() { getFields: function getFields() {
return fields; return fields;
}, },
@@ -84,6 +77,4 @@ define(
value: MailPoet.I18n.t('activate'), value: MailPoet.I18n.t('activate'),
}; };
}, },
}; };
}
);