Make sure we never ship with JS alerts by accident
This commit is contained in:
parent
b8399471b3
commit
64cc4927b3
@ -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
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user