fixing lint config

This commit is contained in:
2025-07-23 09:29:19 -06:00
parent c95c40f9e7
commit d5a40e52d9
19 changed files with 32 additions and 48 deletions

View File

@@ -17,6 +17,7 @@ export const getGlobalSettings = async (): Promise<GlobalSettings> => {
try {
await fs.access(SETTINGS_FILE_PATH);
} catch (err) {
console.log(err);
throw new Error(
`Global Settings file does not exist at path: ${SETTINGS_FILE_PATH}`
);

View File

@@ -1,5 +1,4 @@
import { promises as fs } from "fs";
import path from "path";
import { lectureFolderName } from "./utils/lectureUtils";
import { getCoursePathByName } from "./globalSettingsFileStorageService";

View File

@@ -1,5 +1,4 @@
import { promises as fs } from "fs";
import path from "path";
import { getGlobalSettings } from "../globalSettingsFileStorageService";
export const directoryOrFileExists = async (

View File

@@ -1,5 +1,5 @@
"use client";
import { marked, MarkedExtension } from "marked";
import { marked } from "marked";
import DOMPurify from "isomorphic-dompurify";
import { LocalCourseSettings } from "@/models/local/localCourseSettings";
import markedKatex from "marked-katex-extension";

View File

@@ -17,9 +17,6 @@ import {
getGlobalSettings,
updateGlobalSettings,
} from "@/services/fileStorage/globalSettingsFileStorageService";
import { promises as fs } from "fs";
import { basePath } from "@/services/fileStorage/utils/fileSystemUtils";
import path from "path";
export const settingsRouter = router({
allCoursesSettings: publicProcedure.query(async () => {