Skip to content

Commit 36238bb

Browse files
committed
Another potential fix for prettier plugin module not found problem
1 parent 2905c8b commit 36238bb

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
declare module "prettier-plugin-java" {
2+
export { languages, parsers, printers, options, defaultOptions };
3+
}
4+
declare module "@prettier/plugin-ruby" {
5+
export { languages, parsers, printers, options, defaultOptions };
6+
}

packages/app/src/config/site.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
/* eslint-disable */
2+
/// <reference path="prettier-plugin.d.ts" />
3+
/* eslint-enable */
4+
15
import { type Options as PrettierOptions } from "prettier";
26
import { type Language } from "./languages";
37
export type SiteConfig = typeof siteConfig;
48

9+
import * as prettierPluginJava from "prettier-plugin-java";
10+
import * as prettierPluginGo from "prettier-plugin-go-template";
11+
import * as prettierPluginRuby from "@prettier/plugin-ruby";
12+
513
export const siteConfig = {
614
name: "CodeRacer",
715
description: "Accelerating coding skills, competitive thrills!",

0 commit comments

Comments
 (0)