From a2d57b2cb27486dd95d7c20b5458b842ac237b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrea=20L=C3=B3pez=20Su=C3=A1rez?= <60515012+andrealps@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:05:07 +0100 Subject: [PATCH 1/2] ci: prettier-plugin-tailwindcss@0.6.9 --- package-lock.json | 85 +++++++++++++++++++++++++++++++++++++++++++++-- package.json | 6 ++-- 2 files changed, 85 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 70ac6ce..29f23a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,13 +10,13 @@ "license": "Apache-2.0", "dependencies": { "@antfu/eslint-config": "3.9.1", - "eslint": "9.15.0", - "prettier": "3.3.3" + "eslint": "9.15.0" }, "devDependencies": { "eslint": "9.15.0", "jiti": "2.4.0", - "prettier": "3.3.3", + "prettier": "^3.3.3", + "prettier-plugin-tailwindcss": "^0.6.9", "tsup": "8.3.5", "typescript": "5.6.3" } @@ -5532,6 +5532,85 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, + "node_modules/prettier-plugin-tailwindcss": { + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.6.9.tgz", + "integrity": "sha512-r0i3uhaZAXYP0At5xGfJH876W3HHGHDp+LCRUJrs57PBeQ6mYHMwr25KH8NPX44F2yGTvdnH7OqCshlQx183Eg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.21.3" + }, + "peerDependencies": { + "@ianvs/prettier-plugin-sort-imports": "*", + "@prettier/plugin-pug": "*", + "@shopify/prettier-plugin-liquid": "*", + "@trivago/prettier-plugin-sort-imports": "*", + "@zackad/prettier-plugin-twig-melody": "*", + "prettier": "^3.0", + "prettier-plugin-astro": "*", + "prettier-plugin-css-order": "*", + "prettier-plugin-import-sort": "*", + "prettier-plugin-jsdoc": "*", + "prettier-plugin-marko": "*", + "prettier-plugin-multiline-arrays": "*", + "prettier-plugin-organize-attributes": "*", + "prettier-plugin-organize-imports": "*", + "prettier-plugin-sort-imports": "*", + "prettier-plugin-style-order": "*", + "prettier-plugin-svelte": "*" + }, + "peerDependenciesMeta": { + "@ianvs/prettier-plugin-sort-imports": { + "optional": true + }, + "@prettier/plugin-pug": { + "optional": true + }, + "@shopify/prettier-plugin-liquid": { + "optional": true + }, + "@trivago/prettier-plugin-sort-imports": { + "optional": true + }, + "@zackad/prettier-plugin-twig-melody": { + "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-multiline-arrays": { + "optional": true + }, + "prettier-plugin-organize-attributes": { + "optional": true + }, + "prettier-plugin-organize-imports": { + "optional": true + }, + "prettier-plugin-sort-imports": { + "optional": true + }, + "prettier-plugin-style-order": { + "optional": true + }, + "prettier-plugin-svelte": { + "optional": true + } + } + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", diff --git a/package.json b/package.json index 422083d..42710c2 100644 --- a/package.json +++ b/package.json @@ -46,13 +46,13 @@ }, "dependencies": { "@antfu/eslint-config": "3.9.1", - "eslint": "9.15.0", - "prettier": "3.3.3" + "eslint": "9.15.0" }, "devDependencies": { "eslint": "9.15.0", "jiti": "2.4.0", - "prettier": "3.3.3", + "prettier": "^3.3.3", + "prettier-plugin-tailwindcss": "^0.6.9", "tsup": "8.3.5", "typescript": "5.6.3" } From e2c2626231dc51b01e81ec86e3cdb4c12779b6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrea=20L=C3=B3pez=20Su=C3=A1rez?= <60515012+andrealps@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:05:21 +0100 Subject: [PATCH 2/2] feat: add prettier-plugin-tailwindcss to prettier plugins --- prettier.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/prettier.config.js b/prettier.config.js index ed5f5c2..cab381e 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -3,6 +3,7 @@ const config = { singleQuote: true, arrowParens: 'avoid', semi: false, + plugins: ['prettier-plugin-tailwindcss'], } export default config