Make sure we never ship with JS alerts by accident

This commit is contained in:
Jérémie Astori 2017-09-17 21:50:41 -04:00
parent b8399471b3
commit 64cc4927b3
No known key found for this signature in database
GPG key ID: B9A4F245CD67BDE8
2 changed files with 2 additions and 1 deletions

View file

@ -26,6 +26,7 @@ rules:
key-spacing: [2, {beforeColon: false, afterColon: true}]
keyword-spacing: [2, {before: true, after: true}]
linebreak-style: [2, unix]
no-alert: 2
no-catch-shadow: 2
no-confusing-arrow: 2
no-control-regex: 0

View file

@ -418,7 +418,7 @@ $(function() {
if (chan.hasClass("lobby")) {
cmd = "/quit";
var server = chan.find(".name").html();
if (!confirm("Disconnect from " + server + "?")) {
if (!confirm("Disconnect from " + server + "?")) { // eslint-disable-line no-alert
return false;
}
}