[chore] Disabling a couple ESLint violations

These should really be refactored and fixed, but the end-to-end testing
will take a bit more effort. It can be tackled later.
This commit is contained in:
Steven Evans 2018-09-10 10:59:07 -04:00
parent a85f956a9d
commit a681fc5577
2 changed files with 7 additions and 0 deletions

@ -468,6 +468,8 @@ function updateInfiltrationLevelText(inst) {
} }
var expMultiplier = 2 * inst.clearanceLevel / inst.maxClearanceLevel; var expMultiplier = 2 * inst.clearanceLevel / inst.maxClearanceLevel;
// TODO: fix this to not rely on <pre> and whitespace for formatting...
/* eslint-disable no-irregular-whitespace */
document.getElementById("infiltration-level-text").innerHTML = document.getElementById("infiltration-level-text").innerHTML =
"Facility name:    " + inst.companyName + "<br>" + "Facility name:    " + inst.companyName + "<br>" +
"Clearance Level:  " + inst.clearanceLevel + "<br>" + "Clearance Level:  " + inst.clearanceLevel + "<br>" +
@ -481,6 +483,7 @@ function updateInfiltrationLevelText(inst) {
"Dex exp gained:   " + formatNumber(inst.dexExpGained * expMultiplier, 3) + "<br>" + "Dex exp gained:   " + formatNumber(inst.dexExpGained * expMultiplier, 3) + "<br>" +
"Agi exp gained:   " + formatNumber(inst.agiExpGained * expMultiplier, 3) + "<br>" + "Agi exp gained:   " + formatNumber(inst.agiExpGained * expMultiplier, 3) + "<br>" +
"Cha exp gained:   " + formatNumber(inst.chaExpGained * expMultiplier, 3); "Cha exp gained:   " + formatNumber(inst.chaExpGained * expMultiplier, 3);
/* eslint-enable no-irregular-whitespace */
} }
function updateInfiltrationButtons(inst, scenario) { function updateInfiltrationButtons(inst, scenario) {

@ -1400,6 +1400,7 @@ let Terminal = {
post("Incorrect usage of scan-analyze command. usage: scan-analyze [depth]"); post("Incorrect usage of scan-analyze command. usage: scan-analyze [depth]");
} }
break; break;
/* eslint-disable no-case-declarations */
case "scp": case "scp":
if (commandArray.length != 2) { if (commandArray.length != 2) {
post("Incorrect usage of scp command. Usage: scp [file] [destination hostname/ip]"); post("Incorrect usage of scp command. Usage: scp [file] [destination hostname/ip]");
@ -1493,6 +1494,7 @@ let Terminal = {
} }
post(`${scriptname} copied over to ${destServer.hostname}`); post(`${scriptname} copied over to ${destServer.hostname}`);
break; break;
/* eslint-enable no-case-declarations */
case "sudov": case "sudov":
if (commandArray.length != 1) { if (commandArray.length != 1) {
post("Incorrect number of arguments. Usage: sudov"); return; post("Incorrect number of arguments. Usage: sudov"); return;
@ -1616,6 +1618,7 @@ let Terminal = {
} }
} }
break; break;
/* eslint-disable no-case-declarations */
case "wget": case "wget":
if (commandArray.length !== 2) { if (commandArray.length !== 2) {
return post("Incorrect usage of wget command. Usage: wget [url] [target file]"); return post("Incorrect usage of wget command. Usage: wget [url] [target file]");
@ -1648,6 +1651,7 @@ let Terminal = {
return post("wget failed: " + JSON.stringify(e)); return post("wget failed: " + JSON.stringify(e));
}) })
break; break;
/* eslint-enable no-case-declarations */
default: default:
post("Command not found"); post("Command not found");
} }