Fix linter errors

This commit is contained in:
Martin Fournier 2021-12-21 13:07:51 -05:00
parent ea0be338e1
commit 6b59a58ea3
2 changed files with 4 additions and 4 deletions

@ -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) {