From 7185677b13d219af6ee519a04a1ee93ec502173d Mon Sep 17 00:00:00 2001 From: TZGyn Date: Mon, 11 Sep 2023 00:42:44 +0800 Subject: [PATCH] Frontend added prettier --- react-frontend/.prettierrc.yaml | 2 +- react-frontend/package.json | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/react-frontend/.prettierrc.yaml b/react-frontend/.prettierrc.yaml index 8acc239..1439e2e 100644 --- a/react-frontend/.prettierrc.yaml +++ b/react-frontend/.prettierrc.yaml @@ -13,4 +13,4 @@ arrowParens: always htmlWhitespaceSensitivity: strict vueIndentScriptAndStyle: false singleAttributePerLine: true -# plugins: [prettier-plugin-tailwindcss] +plugins: [prettier-plugin-tailwindcss] diff --git a/react-frontend/package.json b/react-frontend/package.json index 729b256..881e77d 100644 --- a/react-frontend/package.json +++ b/react-frontend/package.json @@ -33,6 +33,8 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.3", "postcss": "^8.4.29", + "prettier": "^3.0.3", + "prettier-plugin-tailwindcss": "^0.5.4", "tailwindcss": "^3.3.3", "typescript": "^5.0.2", "vite": "^4.4.5"