[TS] Typecheck skipping

This commit is contained in:
Dunemask 2024-03-29 16:54:12 -06:00
parent 4a6f20fa7b
commit e1fe6c2f3b
30 changed files with 30 additions and 0 deletions

View file

@ -1,3 +1,4 @@
// @ts-nocheck
// Imports // Imports
import fig from "figlet"; import fig from "figlet";
import http from "http"; import http from "http";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import { import {
createServerFolder, createServerFolder,
getServerItem, getServerItem,

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import createServerResources from "../k8s/server-create.js"; import createServerResources from "../k8s/server-create.js";
import deleteServerResources from "../k8s/server-delete.js"; import deleteServerResources from "../k8s/server-delete.js";
import { import {

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import { S3, GetObjectCommand } from "@aws-sdk/client-s3"; import { S3, GetObjectCommand } from "@aws-sdk/client-s3";
import { getSignedUrl } from "@aws-sdk/s3-request-presigner"; import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
import { basename } from "node:path"; import { basename } from "node:path";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import { getUserDeployments } from "../k8s/k8s-server-control.js"; import { getUserDeployments } from "../k8s/k8s-server-control.js";
import { getInstances } from "../k8s/server-status.js"; import { getInstances } from "../k8s/server-status.js";
import { sendError } from "../util/ExpressClientError.js"; import { sendError } from "../util/ExpressClientError.js";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
// Imports // Imports
import k8s from "@kubernetes/client-node"; import k8s from "@kubernetes/client-node";
import { Rcon as RconClient } from "rcon-client"; import { Rcon as RconClient } from "rcon-client";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
const buildPostgresEntry = (entry) => { const buildPostgresEntry = (entry) => {
const pgEntry = { ...entry }; const pgEntry = { ...entry };
Object.keys(pgEntry).forEach((col) => { Object.keys(pgEntry).forEach((col) => {

View file

@ -1,3 +1,4 @@
// @ts-nocheck
// Imports // Imports
import path from "node:path"; import path from "node:path";
import { URL } from "node:url"; import { URL } from "node:url";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import pg from "../postgres.js"; import pg from "../postgres.js";
import { import {
deleteQuery, deleteQuery,

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import k8s from "@kubernetes/client-node"; import k8s from "@kubernetes/client-node";
const MCL_KUBECONFIG = process.env.MCL_KUBECONFIG; const MCL_KUBECONFIG = process.env.MCL_KUBECONFIG;
const envConfig = MCL_KUBECONFIG ? MCL_KUBECONFIG : null; const envConfig = MCL_KUBECONFIG ? MCL_KUBECONFIG : null;

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import k8s from "@kubernetes/client-node"; import k8s from "@kubernetes/client-node";
import yaml from "js-yaml"; import yaml from "js-yaml";
import { VERB, ERR } from "../util/logging.js"; import { VERB, ERR } from "../util/logging.js";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import fs from "node:fs"; import fs from "node:fs";
import path from "node:path"; import path from "node:path";
import yaml from "js-yaml"; import yaml from "js-yaml";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import { v4 as uuidv4 } from "uuid"; import { v4 as uuidv4 } from "uuid";
import bcrypt from "bcrypt"; import bcrypt from "bcrypt";
import k8s from "@kubernetes/client-node"; import k8s from "@kubernetes/client-node";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import k8s from "@kubernetes/client-node"; import k8s from "@kubernetes/client-node";
import { ERR } from "../util/logging.js"; import { ERR } from "../util/logging.js";
import { getServerAssets } from "./k8s-server-control.js"; import { getServerAssets } from "./k8s-server-control.js";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import ftp from "basic-ftp"; import ftp from "basic-ftp";
import { ERR } from "../util/logging.js"; import { ERR } from "../util/logging.js";
import { getServerAssets } from "./k8s-server-control.js"; import { getServerAssets } from "./k8s-server-control.js";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import k8s from "@kubernetes/client-node"; import k8s from "@kubernetes/client-node";
import { import {
createExtraService, createExtraService,

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import k8s from "@kubernetes/client-node"; import k8s from "@kubernetes/client-node";
import { getUserDeployments } from "./k8s-server-control.js"; import { getUserDeployments } from "./k8s-server-control.js";
import { getServerEntries } from "../database/queries/server-queries.js"; import { getServerEntries } from "../database/queries/server-queries.js";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import { Router } from "express"; import { Router } from "express";
import cairoAuthMiddleware from "./middlewares/auth-middleware.js"; import cairoAuthMiddleware from "./middlewares/auth-middleware.js";
const router = Router(); const router = Router();

View file

@ -1,3 +1,4 @@
// @ts-nocheck
export function logErrors(err, req, res, next) { export function logErrors(err, req, res, next) {
console.error(err.stack); console.error(err.stack);
next(err); next(err);

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import { Router, json as jsonMiddleware } from "express"; import { Router, json as jsonMiddleware } from "express";
import multer from "multer"; import multer from "multer";
import { import {

View file

@ -1,3 +1,4 @@
// @ts-nocheck
// Imports // Imports
import { Router } from "express"; import { Router } from "express";
import bearerTokenMiddleware from "express-bearer-token"; import bearerTokenMiddleware from "express-bearer-token";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import express, { Router } from "express"; import express, { Router } from "express";
import path from "path"; import path from "path";
const router = Router(); const router = Router();

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import { Router, json as jsonMiddleware } from "express"; import { Router, json as jsonMiddleware } from "express";
import { getS3BackupUrl, listS3Backups } from "../controllers/s3-controller.js"; import { getS3BackupUrl, listS3Backups } from "../controllers/s3-controller.js";
import cairoAuthMiddleware from "./middlewares/auth-middleware.js"; import cairoAuthMiddleware from "./middlewares/auth-middleware.js";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import { Router, json as jsonMiddleware } from "express"; import { Router, json as jsonMiddleware } from "express";
import { import {
createServer, createServer,

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import { Router } from "express"; import { Router } from "express";
import k8s from "@kubernetes/client-node"; import k8s from "@kubernetes/client-node";
import { WARN } from "../util/logging.js"; import { WARN } from "../util/logging.js";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import { Router } from "express"; import { Router } from "express";
const router = Router(); const router = Router();
// Get Routes // Get Routes

View file

@ -1,3 +1,4 @@
// @ts-nocheck
// Imports // Imports
import express from "express"; import express from "express";

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import { Server as Skio } from "socket.io"; import { Server as Skio } from "socket.io";
import { VERB, WARN, ERR } from "../util/logging.js"; import { VERB, WARN, ERR } from "../util/logging.js";
import { import {

View file

@ -1,3 +1,4 @@
// @ts-nocheck
import { VERB } from "./logging.js"; import { VERB } from "./logging.js";
export default class ExpressClientError extends Error { export default class ExpressClientError extends Error {

View file

@ -1,3 +1,4 @@
// @ts-nocheck
// Imports // Imports
import { Chalk } from "chalk"; import { Chalk } from "chalk";
const { redBright, greenBright, yellowBright, cyanBright, magentaBright } = const { redBright, greenBright, yellowBright, cyanBright, magentaBright } =