From 7212cc2f1c2e3d1da0f91ab77c09641ceaeade83 Mon Sep 17 00:00:00 2001 From: BB Date: Tue, 1 Mar 2022 17:32:44 +0100 Subject: [PATCH] Removed unnecessary eslint-disable lines --- src/NetscriptPort.ts | 2 -- src/ScriptEditor/ui/ScriptEditorRoot.tsx | 1 - src/TextFile.ts | 2 -- src/ui/numeralFormat.ts | 1 - stylelint.config.js | 1 - test/cypress/plugins/index.js | 1 - test/jest/Netscript/StaticRamCalculation.test.js | 1 - 7 files changed, 9 deletions(-) diff --git a/src/NetscriptPort.ts b/src/NetscriptPort.ts index c4960892e..f44526de3 100644 --- a/src/NetscriptPort.ts +++ b/src/NetscriptPort.ts @@ -14,7 +14,6 @@ export function NetscriptPort(): IPort { const data: any[] = []; return { - // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types write: (value: any): any => { data.push(value); if (data.length > Settings.MaxPortCapacity) { @@ -23,7 +22,6 @@ export function NetscriptPort(): IPort { return null; }, - // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types tryWrite: (value: any): boolean => { if (data.length >= Settings.MaxPortCapacity) { return false; diff --git a/src/ScriptEditor/ui/ScriptEditorRoot.tsx b/src/ScriptEditor/ui/ScriptEditorRoot.tsx index b6e7a3dd3..c2c44bafe 100644 --- a/src/ScriptEditor/ui/ScriptEditorRoot.tsx +++ b/src/ScriptEditor/ui/ScriptEditorRoot.tsx @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ import React, { useState, useEffect, useRef, useMemo } from "react"; import Editor, { Monaco } from "@monaco-editor/react"; import * as monaco from "monaco-editor"; diff --git a/src/TextFile.ts b/src/TextFile.ts index db4051f6f..2fddad35a 100644 --- a/src/TextFile.ts +++ b/src/TextFile.ts @@ -114,7 +114,6 @@ Reviver.constructors.TextFile = TextFile; * @param server The server object to look in * @returns The file object, or null if it couldn't find it. */ -// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types export function getTextFile(fn: string, server: BaseServer): TextFile | null { let filename: string = !fn.endsWith(".txt") ? `${fn}.txt` : fn; @@ -138,7 +137,6 @@ export function getTextFile(fn: string, server: BaseServer): TextFile | null { * @param server The server that the file should be created on. * @returns The instance of the file. */ -// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types export function createTextFile(fn: string, txt: string, server: BaseServer): TextFile | undefined { if (getTextFile(fn, server) !== null) { // This should probably be a `throw`... diff --git a/src/ui/numeralFormat.ts b/src/ui/numeralFormat.ts index fe4241aa5..1e005fd11 100644 --- a/src/ui/numeralFormat.ts +++ b/src/ui/numeralFormat.ts @@ -16,7 +16,6 @@ import "numeral/locales/ru"; import { Settings } from "../Settings/Settings"; -/* eslint-disable class-methods-use-this */ const extraFormats = [1e15, 1e18, 1e21, 1e24, 1e27, 1e30]; const extraNotations = ["q", "Q", "s", "S", "o", "n"]; diff --git a/stylelint.config.js b/stylelint.config.js index 6f1f9e848..142facf32 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -1,4 +1,3 @@ -/* eslint-disable spaced-comment */ module.exports = { plugins: [ "stylelint-order" /*, diff --git a/test/cypress/plugins/index.js b/test/cypress/plugins/index.js index a01f67dc6..b4cd66f54 100644 --- a/test/cypress/plugins/index.js +++ b/test/cypress/plugins/index.js @@ -15,7 +15,6 @@ /** * @type {Cypress.PluginConfig} */ -// eslint-disable-next-line no-unused-vars module.exports = (/*on, config*/) => { // `on` is used to hook into various events Cypress emits // `config` is the resolved Cypress config diff --git a/test/jest/Netscript/StaticRamCalculation.test.js b/test/jest/Netscript/StaticRamCalculation.test.js index 4e615100e..dd323709b 100644 --- a/test/jest/Netscript/StaticRamCalculation.test.js +++ b/test/jest/Netscript/StaticRamCalculation.test.js @@ -1,4 +1,3 @@ -// eslint-disable-next-line @typescript-eslint/no-unused-vars import { jest, describe, expect } from "@jest/globals"; import { Player } from "../../../src/Player";