Skip to content

Commit

Permalink
feat: tailwind prettier plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloanan committed Mar 2, 2022
1 parent 604ceed commit 5417816
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"husky": "^7.0.0",
"next-sitemap": "^1.6.261",
"prettier": "^2.5.1",
"prettier-plugin-tailwindcss": "^0.1.8",
"typescript": "^4.5.4"
}
}
2 changes: 1 addition & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function CustomApp({ Component, pageProps }: CustomAppProps) {
return Component.disableLayout ? (
<Component {...pageProps} />
) : (
<div className='bg-gray-100 min-h-screen'>
<div className='min-h-screen bg-gray-100'>
<Component {...pageProps} />
</div>
)
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2868,6 +2868,11 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier-plugin-tailwindcss@^0.1.8:
version "0.1.8"
resolved "https://registry.yarnpkg.com/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.1.8.tgz#ba0f606ed91959ede670303d905b99106e9e6293"
integrity sha512-hwarSBCswAXa+kqYtaAkFr3Vop9o04WOyZs0qo3NyvW8L7f1rif61wRyq0+ArmVThOuRBcJF5hjGXYk86cwemg==

prettier@^2.5.1:
version "2.5.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a"
Expand Down

0 comments on commit 5417816

Please sign in to comment.