mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
Merge pull request #3052 from ApamNapat/remove_unused_eslint_disable
Removed unnecessary eslint-disable lines
This commit is contained in:
commit
46628cb636
@ -14,7 +14,6 @@ export function NetscriptPort(): IPort {
|
|||||||
const data: any[] = [];
|
const data: any[] = [];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
||||||
write: (value: any): any => {
|
write: (value: any): any => {
|
||||||
data.push(value);
|
data.push(value);
|
||||||
if (data.length > Settings.MaxPortCapacity) {
|
if (data.length > Settings.MaxPortCapacity) {
|
||||||
@ -23,7 +22,6 @@ export function NetscriptPort(): IPort {
|
|||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
||||||
tryWrite: (value: any): boolean => {
|
tryWrite: (value: any): boolean => {
|
||||||
if (data.length >= Settings.MaxPortCapacity) {
|
if (data.length >= Settings.MaxPortCapacity) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
||||||
import React, { useState, useEffect, useRef, useMemo } from "react";
|
import React, { useState, useEffect, useRef, useMemo } from "react";
|
||||||
import Editor, { Monaco } from "@monaco-editor/react";
|
import Editor, { Monaco } from "@monaco-editor/react";
|
||||||
import * as monaco from "monaco-editor";
|
import * as monaco from "monaco-editor";
|
||||||
|
@ -114,7 +114,6 @@ Reviver.constructors.TextFile = TextFile;
|
|||||||
* @param server The server object to look in
|
* @param server The server object to look in
|
||||||
* @returns The file object, or null if it couldn't find it.
|
* @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 {
|
export function getTextFile(fn: string, server: BaseServer): TextFile | null {
|
||||||
let filename: string = !fn.endsWith(".txt") ? `${fn}.txt` : fn;
|
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.
|
* @param server The server that the file should be created on.
|
||||||
* @returns The instance of the file.
|
* @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 {
|
export function createTextFile(fn: string, txt: string, server: BaseServer): TextFile | undefined {
|
||||||
if (getTextFile(fn, server) !== null) {
|
if (getTextFile(fn, server) !== null) {
|
||||||
// This should probably be a `throw`...
|
// This should probably be a `throw`...
|
||||||
|
@ -16,7 +16,6 @@ import "numeral/locales/ru";
|
|||||||
|
|
||||||
import { Settings } from "../Settings/Settings";
|
import { Settings } from "../Settings/Settings";
|
||||||
|
|
||||||
/* eslint-disable class-methods-use-this */
|
|
||||||
|
|
||||||
const extraFormats = [1e15, 1e18, 1e21, 1e24, 1e27, 1e30];
|
const extraFormats = [1e15, 1e18, 1e21, 1e24, 1e27, 1e30];
|
||||||
const extraNotations = ["q", "Q", "s", "S", "o", "n"];
|
const extraNotations = ["q", "Q", "s", "S", "o", "n"];
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable spaced-comment */
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
"stylelint-order" /*,
|
"stylelint-order" /*,
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
/**
|
/**
|
||||||
* @type {Cypress.PluginConfig}
|
* @type {Cypress.PluginConfig}
|
||||||
*/
|
*/
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
module.exports = (/*on, config*/) => {
|
module.exports = (/*on, config*/) => {
|
||||||
// `on` is used to hook into various events Cypress emits
|
// `on` is used to hook into various events Cypress emits
|
||||||
// `config` is the resolved Cypress config
|
// `config` is the resolved Cypress config
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
import { jest, describe, expect } from "@jest/globals";
|
import { jest, describe, expect } from "@jest/globals";
|
||||||
|
|
||||||
import { Player } from "../../../src/Player";
|
import { Player } from "../../../src/Player";
|
||||||
|
Loading…
Reference in New Issue
Block a user