ES6 rules

This commit is contained in:
Amine Ben hammou
2017-09-26 10:32:52 +00:00
parent c90e0e9f64
commit 9ad3778cf7
3 changed files with 10 additions and 11 deletions

View File

@@ -48,7 +48,7 @@
"camelcase": 0, "camelcase": 0,
"eqeqeq": 0, "eqeqeq": 0,
"no-lonely-if": 0, "no-lonely-if": 0,
"block-scoped-var": 0, "space-unary-ops": 0,
"no-extra-bind": 0, "no-extra-bind": 0,
"class-methods-use-this": 0, "class-methods-use-this": 0,
"no-case-declarations": 0, "no-case-declarations": 0,
@@ -59,12 +59,11 @@
"no-extra-boolean-cast": 0, "no-extra-boolean-cast": 0,
"dot-notation": 0, "dot-notation": 0,
"no-shadow": 0, "no-shadow": 0,
"one-var": 0,
"no-alert": 0, "no-alert": 0,
"one-var-declaration-per-line": 0,
"no-script-url": 0, "no-script-url": 0,
"wrap-iife": 0, "wrap-iife": 0,
"vars-on-top": 0, "space-infix-ops": 0,
"no-irregular-whitespace": 0,
"padded-blocks": 0, "padded-blocks": 0,
"no-underscore-dangle": 0 "no-underscore-dangle": 0
} }

View File

@@ -658,8 +658,8 @@ const Listing = React.createClass({
}); });
}, },
handleSelectItem: function (id, is_checked) { handleSelectItem: function (id, is_checked) {
let selected_ids = this.state.selected_ids, let selected_ids = this.state.selected_ids;
selection = false; let selection = false;
if (is_checked) { if (is_checked) {
selected_ids = jQuery.merge(selected_ids, [id]); selected_ids = jQuery.merge(selected_ids, [id]);

View File

@@ -179,11 +179,11 @@ const _StatisticsMixin = {
const percentage_opened_display = MailPoet.Num.toLocaleFixed(percentage_opened, 1); const percentage_opened_display = MailPoet.Num.toLocaleFixed(percentage_opened, 1);
const percentage_unsubscribed_display = MailPoet.Num.toLocaleFixed(percentage_unsubscribed, 1); const percentage_unsubscribed_display = MailPoet.Num.toLocaleFixed(percentage_unsubscribed, 1);
let show_stats_timeout, let show_stats_timeout;
newsletter_date, let newsletter_date;
sent_hours_ago, let sent_hours_ago;
too_early_for_stats, let too_early_for_stats;
show_kb_link; let show_kb_link;
if (current_time !== undefined) { if (current_time !== undefined) {
// standard emails and post notifications: // standard emails and post notifications:
// display green box for newsletters that were just sent // display green box for newsletters that were just sent