[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
import fig from "figlet";
import http from "http";

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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