fix: remove prettier, not needed.
This commit is contained in:
parent
e31197f649
commit
d82515336c
@ -368,7 +368,6 @@ import {
|
|||||||
type Stage,
|
type Stage,
|
||||||
finalPermissionMessages,
|
finalPermissionMessages,
|
||||||
} from "@modrinth/moderation";
|
} from "@modrinth/moderation";
|
||||||
import * as prettier from "prettier";
|
|
||||||
import ModpackPermissionsFlow from "./ModpackPermissionsFlow.vue";
|
import ModpackPermissionsFlow from "./ModpackPermissionsFlow.vue";
|
||||||
import KeybindsModal from "./ChecklistKeybindsModal.vue";
|
import KeybindsModal from "./ChecklistKeybindsModal.vue";
|
||||||
import { useModerationStore } from "~/store/moderation.ts";
|
import { useModerationStore } from "~/store/moderation.ts";
|
||||||
@ -1118,19 +1117,7 @@ async function generateMessage() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
message.value = fullMessage;
|
||||||
const formattedMessage = await prettier.format(fullMessage, {
|
|
||||||
parser: "markdown",
|
|
||||||
printWidth: 80,
|
|
||||||
proseWrap: "always",
|
|
||||||
tabWidth: 2,
|
|
||||||
useTabs: false,
|
|
||||||
});
|
|
||||||
message.value = formattedMessage;
|
|
||||||
} catch (formattingError) {
|
|
||||||
console.warn("Failed to format markdown, using original:", formattingError);
|
|
||||||
message.value = fullMessage;
|
|
||||||
}
|
|
||||||
|
|
||||||
generatedMessage.value = true;
|
generatedMessage.value = true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user