mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 05:05:47 +01:00
[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:
parent
a85f956a9d
commit
a681fc5577
@ -468,6 +468,8 @@ function updateInfiltrationLevelText(inst) {
|
||||
}
|
||||
|
||||
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 =
|
||||
"Facility name: " + inst.companyName + "<br>" +
|
||||
"Clearance Level: " + inst.clearanceLevel + "<br>" +
|
||||
@ -481,6 +483,7 @@ function updateInfiltrationLevelText(inst) {
|
||||
"Dex exp gained: " + formatNumber(inst.dexExpGained * expMultiplier, 3) + "<br>" +
|
||||
"Agi exp gained: " + formatNumber(inst.agiExpGained * expMultiplier, 3) + "<br>" +
|
||||
"Cha exp gained: " + formatNumber(inst.chaExpGained * expMultiplier, 3);
|
||||
/* eslint-enable no-irregular-whitespace */
|
||||
}
|
||||
|
||||
function updateInfiltrationButtons(inst, scenario) {
|
||||
|
@ -1400,6 +1400,7 @@ let Terminal = {
|
||||
post("Incorrect usage of scan-analyze command. usage: scan-analyze [depth]");
|
||||
}
|
||||
break;
|
||||
/* eslint-disable no-case-declarations */
|
||||
case "scp":
|
||||
if (commandArray.length != 2) {
|
||||
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}`);
|
||||
break;
|
||||
/* eslint-enable no-case-declarations */
|
||||
case "sudov":
|
||||
if (commandArray.length != 1) {
|
||||
post("Incorrect number of arguments. Usage: sudov"); return;
|
||||
@ -1616,6 +1618,7 @@ let Terminal = {
|
||||
}
|
||||
}
|
||||
break;
|
||||
/* eslint-disable no-case-declarations */
|
||||
case "wget":
|
||||
if (commandArray.length !== 2) {
|
||||
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));
|
||||
})
|
||||
break;
|
||||
/* eslint-enable no-case-declarations */
|
||||
default:
|
||||
post("Command not found");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user