mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
Fix linter errors
This commit is contained in:
parent
ea0be338e1
commit
6b59a58ea3
@ -819,7 +819,7 @@ export function NetscriptSingularity(
|
||||
|
||||
return player.getUpgradeHomeRamCost();
|
||||
},
|
||||
workForCompany: function (companyName: any, focus: boolean = true): any {
|
||||
workForCompany: function (companyName: any, focus = true): any {
|
||||
helper.updateDynamicRam("workForCompany", getRamCost("workForCompany"));
|
||||
helper.checkSingularityAccess("workForCompany", 2);
|
||||
|
||||
@ -991,7 +991,7 @@ export function NetscriptSingularity(
|
||||
workerScript.log("joinFaction", () => `Joined the '${name}' faction.`);
|
||||
return true;
|
||||
},
|
||||
workForFaction: function (name: any, type: any, focus: boolean = true): any {
|
||||
workForFaction: function (name: any, type: any, focus = true): any {
|
||||
helper.updateDynamicRam("workForFaction", getRamCost("workForFaction"));
|
||||
helper.checkSingularityAccess("workForFaction", 2);
|
||||
getFaction("workForFaction", name);
|
||||
|
@ -19,12 +19,12 @@ function isNs2(filename: string): boolean {
|
||||
|
||||
const newNs2Template = `/** @param {NS} ns **/
|
||||
export async function main(ns) {
|
||||
|
||||
|
||||
}`;
|
||||
|
||||
export function commonEditor(
|
||||
command: string,
|
||||
{ terminal, router, player, server, args }: EditorParameters,
|
||||
{ terminal, router, player, args }: EditorParameters,
|
||||
scriptEditorRouteOptions?: ScriptEditorRouteOptions,
|
||||
): void {
|
||||
if (args.length < 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user