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}] key-spacing: [2, {beforeColon: false, afterColon: true}]
keyword-spacing: [2, {before: true, after: true}] keyword-spacing: [2, {before: true, after: true}]
linebreak-style: [2, unix] linebreak-style: [2, unix]
no-alert: 2
no-catch-shadow: 2 no-catch-shadow: 2
no-confusing-arrow: 2 no-confusing-arrow: 2
no-control-regex: 0 no-control-regex: 0

View File

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