Fix eslint default-case in es5 files

[MAILPOET-1145]
This commit is contained in:
Pavel Dohnal
2018-02-19 15:58:25 +00:00
parent 426a72c557
commit e10901d939
3 changed files with 5 additions and 1 deletions

View File

@@ -32,7 +32,6 @@
"no-useless-escape": 0,
"wrap-iife": 0,
"no-plusplus": 0,
"default-case": 0,
"brace-style": 0,
"space-infix-ops": 0
}

View File

@@ -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;

View File

@@ -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