Skip to content

Commit

Permalink
eslint removal
Browse files Browse the repository at this point in the history
  • Loading branch information
prayanshchh committed Dec 31, 2024
1 parent 78fab42 commit 89f67dd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
29 changes: 14 additions & 15 deletions setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-restricted-imports */
import * as cryptolib from "crypto";
import dotenv from "dotenv";
import fs from "fs";
Expand All @@ -7,31 +6,31 @@ import path from "path";
import type { ExecException } from "child_process";
import { exec, spawn, execSync } from "child_process";
import { MongoClient } from "mongodb";
import { MAXIMUM_IMAGE_SIZE_LIMIT_KB } from "./src/constants";
import { MAXIMUM_IMAGE_SIZE_LIMIT_KB } from "@constants";
import {
askForMongoDBUrl,
checkConnection,
checkExistingMongoDB,
} from "./src/setup/MongoDB";
import { askToKeepValues } from "./src/setup/askToKeepValues";
import { getNodeEnvironment } from "./src/setup/getNodeEnvironment";
import { isValidEmail } from "./src/setup/isValidEmail";
import { validateRecaptcha } from "./src/setup/reCaptcha";
} from "@setup/MongoDB";
import { askToKeepValues } from "@setup/askToKeepValues";
import { getNodeEnvironment } from "@setup/getNodeEnvironment";
import { isValidEmail } from "@setup/isValidEmail";
import { validateRecaptcha } from "@setup/reCaptcha";
import {
askForRedisUrl,
checkExistingRedis,
checkRedisConnection,
} from "./src/setup/redisConfiguration";
} from "@setup/redisConfiguration";
import {
setImageUploadSize,
validateImageFileSize,
} from "./src/setup/setImageUploadSize";
import { askForSuperAdminEmail } from "./src/setup/superAdmin";
import { updateEnvVariable } from "./src/setup/updateEnvVariable";
import { verifySmtpConnection } from "./src/setup/verifySmtpConnection";
import { loadDefaultOrganiation } from "./src/utilities/loadDefaultOrg";
import { isMinioInstalled } from "./src/setup/isMinioInstalled";
import { installMinio } from "./src/setup/installMinio";
} from "@setup/setImageUploadSize";
import { askForSuperAdminEmail } from "@setup/superAdmin";
import { updateEnvVariable } from "@setup/updateEnvVariable";
import { verifySmtpConnection } from "@setup/verifySmtpConnection";
import { loadDefaultOrganiation } from "@utilities/loadDefaultOrg";
import { isMinioInstalled } from "@setup/isMinioInstalled";
import { installMinio } from "@setup/installMinio";

dotenv.config();

Expand Down
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"resolveJsonModule": true /* Allow to import JSON files */,
"moduleResolution": "node",
"noUncheckedSideEffectImports": true /* Checks if module's path exists. */
"noUncheckedSideEffectImports": true /* Checks if module's path exists. */,
"paths": {
"@constants": ["./src/constants"],
"@setup/*": ["./src/setup/*"],
"@utilities/*": ["./src/utilities/*"]
}
}
}

0 comments on commit 89f67dd

Please sign in to comment.