Fix eslint default-case in es5 files
[MAILPOET-1145]
This commit is contained in:
@@ -32,7 +32,6 @@
|
||||
"no-useless-escape": 0,
|
||||
"wrap-iife": 0,
|
||||
"no-plusplus": 0,
|
||||
"default-case": 0,
|
||||
"brace-style": 0,
|
||||
"space-infix-ops": 0
|
||||
}
|
||||
|
@@ -340,6 +340,7 @@ define('modal', ['mailpoet', 'jquery'],
|
||||
}
|
||||
jQuery('#mailpoet_panel').css({ minHeight: 'auto' });
|
||||
break;
|
||||
default: throw new Error('Incorrect type');
|
||||
}
|
||||
|
||||
return this;
|
||||
@@ -376,6 +377,7 @@ define('modal', ['mailpoet', 'jquery'],
|
||||
}
|
||||
}.bind(this), 0);
|
||||
break;
|
||||
default: throw new Error('Incorrect type');
|
||||
}
|
||||
|
||||
return this;
|
||||
|
@@ -151,6 +151,9 @@ define('notice', ['mailpoet', 'jquery'], function (mp, jQuery) { // eslint-disab
|
||||
case 'error':
|
||||
this.element.addClass('notice notice-error');
|
||||
break;
|
||||
default:
|
||||
this.element.addClass('notice');
|
||||
break;
|
||||
}
|
||||
|
||||
// make the notice appear
|
||||
|
Reference in New Issue
Block a user