From 032c616c00b9e4c6a7d6ab96b6596abe972c5c36 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 2 Jul 2023 10:28:44 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20chore(frontend):=20add=20P?= =?UTF-8?q?rettier=20and=20Prettier=20plugin=20for=20Tailwind=20CSS=20The?= =?UTF-8?q?=20package.json=20file=20has=20been=20updated=20to=20include=20?= =?UTF-8?q?the=20dependencies=20for=20Prettier=20and=20the=20Prettier=20pl?= =?UTF-8?q?ugin=20for=20Tailwind=20CSS.=20Prettier=20is=20a=20code=20forma?= =?UTF-8?q?tter=20that=20helps=20maintain=20consistent=20code=20style=20ac?= =?UTF-8?q?ross=20the=20project.=20The=20Prettier=20plugin=20for=20Tailwin?= =?UTF-8?q?d=20CSS=20ensures=20that=20the=20Tailwind=20CSS=20code=20is=20f?= =?UTF-8?q?ormatted=20correctly.=20Additionally,=20a=20new=20prettier.conf?= =?UTF-8?q?ig.js=20file=20has=20been=20added=20to=20configure=20Prettier?= =?UTF-8?q?=20with=20the=20Tailwind=20CSS=20plugin.=20This=20will=20improv?= =?UTF-8?q?e=20the=20code=20formatting=20and=20maintainability=20of=20the?= =?UTF-8?q?=20frontend=20codebase.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/package-lock.json | 91 +++++++++++++++++++++++++++++++++ src/frontend/package.json | 2 + src/frontend/prettier.config.js | 3 ++ 3 files changed, 96 insertions(+) create mode 100644 src/frontend/prettier.config.js diff --git a/src/frontend/package-lock.json b/src/frontend/package-lock.json index da752486c..acf9a1865 100644 --- a/src/frontend/package-lock.json +++ b/src/frontend/package-lock.json @@ -84,6 +84,8 @@ "autoprefixer": "^10.4.14", "daisyui": "^3.1.1", "postcss": "^8.4.23", + "prettier": "^2.8.8", + "prettier-plugin-tailwindcss": "^0.3.0", "tailwindcss": "^3.3.2", "typescript": "^5.0.2", "vite": "^4.3.9" @@ -8599,6 +8601,95 @@ "node": ">= 0.8.0" } }, + "node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-plugin-tailwindcss": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.3.0.tgz", + "integrity": "sha512-009/Xqdy7UmkcTBpwlq7jsViDqXAYSOMLDrHAdTMlVZOrKfM2o9Ci7EMWTMZ7SkKBFTG04UM9F9iM2+4i6boDA==", + "dev": true, + "engines": { + "node": ">=12.17.0" + }, + "peerDependencies": { + "@ianvs/prettier-plugin-sort-imports": "*", + "@prettier/plugin-pug": "*", + "@shopify/prettier-plugin-liquid": "*", + "@shufo/prettier-plugin-blade": "*", + "@trivago/prettier-plugin-sort-imports": "*", + "prettier": ">=2.2.0", + "prettier-plugin-astro": "*", + "prettier-plugin-css-order": "*", + "prettier-plugin-import-sort": "*", + "prettier-plugin-jsdoc": "*", + "prettier-plugin-marko": "*", + "prettier-plugin-organize-attributes": "*", + "prettier-plugin-organize-imports": "*", + "prettier-plugin-style-order": "*", + "prettier-plugin-svelte": "*", + "prettier-plugin-twig-melody": "*" + }, + "peerDependenciesMeta": { + "@ianvs/prettier-plugin-sort-imports": { + "optional": true + }, + "@prettier/plugin-pug": { + "optional": true + }, + "@shopify/prettier-plugin-liquid": { + "optional": true + }, + "@shufo/prettier-plugin-blade": { + "optional": true + }, + "@trivago/prettier-plugin-sort-imports": { + "optional": true + }, + "prettier-plugin-astro": { + "optional": true + }, + "prettier-plugin-css-order": { + "optional": true + }, + "prettier-plugin-import-sort": { + "optional": true + }, + "prettier-plugin-jsdoc": { + "optional": true + }, + "prettier-plugin-marko": { + "optional": true + }, + "prettier-plugin-organize-attributes": { + "optional": true + }, + "prettier-plugin-organize-imports": { + "optional": true + }, + "prettier-plugin-style-order": { + "optional": true + }, + "prettier-plugin-svelte": { + "optional": true + }, + "prettier-plugin-twig-melody": { + "optional": true + } + } + }, "node_modules/pretty-format": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", diff --git a/src/frontend/package.json b/src/frontend/package.json index 1b6808c00..b856cd5b6 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -105,6 +105,8 @@ "autoprefixer": "^10.4.14", "daisyui": "^3.1.1", "postcss": "^8.4.23", + "prettier": "^2.8.8", + "prettier-plugin-tailwindcss": "^0.3.0", "tailwindcss": "^3.3.2", "typescript": "^5.0.2", "vite": "^4.3.9" diff --git a/src/frontend/prettier.config.js b/src/frontend/prettier.config.js new file mode 100644 index 000000000..f01cc7a68 --- /dev/null +++ b/src/frontend/prettier.config.js @@ -0,0 +1,3 @@ +module.exports = { + plugins: [require("prettier-plugin-tailwindcss")], +};