From d02665e0c90e6ee3698cbcb1afeee24aae871d45 Mon Sep 17 00:00:00 2001 From: Girish21 Date: Sat, 11 Jun 2022 15:59:46 +0530 Subject: [PATCH] prettier tailwind plugin --- .prettierrc | 7 ------- package-lock.json | 22 +++++++++++++++++++++- package.json | 1 + prettier.config.js | 9 +++++++++ 4 files changed, 31 insertions(+), 8 deletions(-) delete mode 100644 .prettierrc create mode 100644 prettier.config.js diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 919f3a8..0000000 --- a/.prettierrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "semi": false, - "singleQuote": true, - "jsxSingleQuote": true, - "arrowParens": "avoid", - "trailingComma": "all" -} diff --git a/package-lock.json b/package-lock.json index 9f6f316..cd8d6f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ ], "devDependencies": { "prettier": "latest", + "prettier-plugin-tailwindcss": "^0.1.11", "turbo": "latest" }, "engines": { @@ -10674,6 +10675,18 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, + "node_modules/prettier-plugin-tailwindcss": { + "version": "0.1.11", + "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.1.11.tgz", + "integrity": "sha512-a28+1jvpIZQdZ/W97wOXb6VqI762MKE/TxMMuibMEHhyYsSxQA8Ek30KObd5kJI2HF1ldtSYprFayXJXi3pz8Q==", + "dev": true, + "engines": { + "node": ">=12.17.0" + }, + "peerDependencies": { + "prettier": ">=2.2.0" + } + }, "node_modules/pretty-format": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", @@ -21889,6 +21902,13 @@ "integrity": "sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==", "dev": true }, + "prettier-plugin-tailwindcss": { + "version": "0.1.11", + "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.1.11.tgz", + "integrity": "sha512-a28+1jvpIZQdZ/W97wOXb6VqI762MKE/TxMMuibMEHhyYsSxQA8Ek30KObd5kJI2HF1ldtSYprFayXJXi3pz8Q==", + "dev": true, + "requires": {} + }, "pretty-format": { "version": "27.5.1", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", @@ -22363,7 +22383,7 @@ "npm-run-all": "^4.1.5", "react": "^18.1.0", "react-dom": "^18.1.0", - "tailwindcss": "*", + "tailwindcss": "^3.0.24", "tsconfig": "*", "typescript": "^4.6.4" }, diff --git a/package.json b/package.json index a02b5cb..80c68de 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ }, "devDependencies": { "prettier": "latest", + "prettier-plugin-tailwindcss": "^0.1.11", "turbo": "latest" }, "engines": { diff --git a/prettier.config.js b/prettier.config.js new file mode 100644 index 0000000..5b85170 --- /dev/null +++ b/prettier.config.js @@ -0,0 +1,9 @@ +module.exports = { + semi: false, + singleQuote: true, + jsxSingleQuote: true, + arrowParens: 'avoid', + trailingComma: 'all', + plugins: [require('prettier-plugin-tailwindcss')], + tailwindConfig: './packages/remix-app/tailwind.config.js', +}