Skip to content

Commit 7363b87

Browse files
authored
Merge pull request webdevcody#663 from phoukiethseng/644-prettier-code-format
Bump down Prettier 3.0.0 to 2.8.8
2 parents cc87254 + c7ebfba commit 7363b87

File tree

4 files changed

+33
-46
lines changed

4 files changed

+33
-46
lines changed

package-lock.json

+13-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/app/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@code-racer/wss": "file:../wss",
2828
"@hookform/resolvers": "^3.1.1",
2929
"@next-auth/prisma-adapter": "^1.0.7",
30+
"@prettier/plugin-ruby": "3.1.2",
3031
"@prisma/client": "^5.0.0",
3132
"@radix-ui/react-avatar": "^1.0.3",
3233
"@radix-ui/react-checkbox": "^1.0.4",
@@ -56,6 +57,9 @@
5657
"nextjs-toploader": "^1.4.2",
5758
"openai": "^3.3.0",
5859
"postcss": "8.4.25",
60+
"prettier": "2.8.8",
61+
"prettier-plugin-go-template": "0.0.13",
62+
"prettier-plugin-java": "2.2.0",
5963
"react": "18.2.0",
6064
"react-confetti": "^6.1.0",
6165
"react-dom": "18.2.0",
@@ -73,11 +77,7 @@
7377
"tailwindcss-animate": "^1.0.6",
7478
"unstyled-table": "^0.0.3-alpha-3",
7579
"uuid": "^9.0.0",
76-
"zod": "^3.21.4",
77-
"@prettier/plugin-ruby": "^4.0.2",
78-
"prettier": "^3.0.0",
79-
"prettier-plugin-go-template": "^0.0.15",
80-
"prettier-plugin-java": "^2.2.0"
80+
"zod": "^3.21.4"
8181
},
8282
"devDependencies": {
8383
"@flydotio/dockerfile": "^0.3.3",
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
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-
}
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+
// }
7+
8+
declare module "prettier";

packages/app/src/config/site.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
/// <reference path="prettier-plugin.d.ts" />
33
/* eslint-enable */
44

5-
import { type Options as PrettierOptions } from "prettier";
5+
// import { type Options as PrettierOptions } from "prettier";
66
import { type Language } from "./languages";
77
export type SiteConfig = typeof siteConfig;
88

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";
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";
1212

1313
export const siteConfig = {
1414
name: "CodeRacer",
@@ -86,12 +86,12 @@ export const siteConfig = {
8686
singleAttributePerLine: false,
8787
plugins: [
8888
"prettier-plugin-java",
89-
"prettier-plugin-go-template",
89+
// "prettier-plugin-go-template",
9090
"@prettier/plugin-ruby",
9191
],
92-
} satisfies PrettierOptions,
92+
},
9393
parserMap: new Map<Language, string>([
94-
["go", "go-template"],
94+
// ["go", "go-template"],
9595
["java", "java"],
9696
["html", "html"],
9797
["javascript", "babel"],

0 commit comments

Comments
 (0)