chore: update prettier

This commit is contained in:
Kim, Jimin 2024-02-28 23:34:49 +09:00
parent 057294a985
commit 12ed6cf0c2
Signed by: pomp
GPG key ID: 77DAC7BB5CA8C7AA
21 changed files with 93 additions and 125 deletions

View file

@ -1,3 +1,4 @@
/** @type {import("prettier").Options} */
module.exports = {
...require("@developomp-site/prettier-config"),
plugins: ["prettier-plugin-tailwindcss"],

View file

@ -35,7 +35,7 @@
"autoprefixer": "^10.4.16",
"eslint": "^8.56.0",
"eslint-config-next": "13.4.12",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "^5.1.3",
"highlight.js": "^11.8.0",
"katex": "^0.16.8",
"next": "13.4.12",
@ -43,7 +43,7 @@
"open-cli": "^7.2.0",
"postcss": "^8.4.32",
"postcss-load-config": "^4.0.1",
"prettier": "^2.8.8",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.9",
"react": "18.2.0",
"react-dom": "18.2.0",

View file

@ -30,7 +30,7 @@ export default function Home() {
content_id: content_id,
...contentMap.posts[content_id],
}}
/>
/>,
)
}
}

View file

@ -14,7 +14,7 @@ interface Props {
export default function Toc({ data }: Props) {
const [isTocOpened, setIsTocOpened] = useState<boolean>(
typeof window !== "undefined" &&
localStorage.getItem("isTocOpened") === "true"
localStorage.getItem("isTocOpened") === "true",
)
useEffect(() => {

View file

@ -53,7 +53,7 @@ export function parsePageData(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
fetched_content: any,
pageType: PageType,
content_id: string
content_id: string,
): PageData {
// page date to be saved as a react state
const pageData: PageData = {