chore: add prettier-plugin-tailwindcss

pull/302/head
Yangshun Tay 2 years ago
parent 7d9eed3b55
commit 06bdab6440

@ -41,6 +41,7 @@
"@types/react-dom": "^18.0.6", "@types/react-dom": "^18.0.6",
"autoprefixer": "^10.4.12", "autoprefixer": "^10.4.12",
"postcss": "^8.4.16", "postcss": "^8.4.16",
"prettier-plugin-tailwindcss": "^0.1.13",
"prisma": "^4.4.0", "prisma": "^4.4.0",
"tailwindcss": "^3.1.8", "tailwindcss": "^3.1.8",
"typescript": "4.8.3" "typescript": "4.8.3"

@ -112,7 +112,7 @@ export default function AppShell({ children }: Props) {
const [mobileMenuOpen, setMobileMenuOpen] = useState(false); const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
return ( return (
<div className="flex min-h-screen h-full"> <div className="flex h-full min-h-screen">
{/* Narrow sidebar */} {/* Narrow sidebar */}
<div className="hidden w-28 overflow-y-auto bg-indigo-700 md:block"> <div className="hidden w-28 overflow-y-auto bg-indigo-700 md:block">
<div className="flex w-full flex-col items-center py-6"> <div className="flex w-full flex-col items-center py-6">
@ -132,7 +132,7 @@ export default function AppShell({ children }: Props) {
item.current item.current
? 'bg-indigo-800 text-white' ? 'bg-indigo-800 text-white'
: 'text-indigo-100 hover:bg-indigo-800 hover:text-white', : 'text-indigo-100 hover:bg-indigo-800 hover:text-white',
'group w-full p-3 rounded-md flex flex-col items-center text-xs font-medium', 'group flex w-full flex-col items-center rounded-md p-3 text-xs font-medium',
)} )}
href={item.href}> href={item.href}>
<item.icon <item.icon
@ -217,7 +217,7 @@ export default function AppShell({ children }: Props) {
item.current item.current
? 'bg-indigo-800 text-white' ? 'bg-indigo-800 text-white'
: 'text-indigo-100 hover:bg-indigo-800 hover:text-white', : 'text-indigo-100 hover:bg-indigo-800 hover:text-white',
'group py-2 px-3 rounded-md flex items-center text-sm font-medium', 'group flex items-center rounded-md py-2 px-3 text-sm font-medium',
)} )}
href={item.href}> href={item.href}>
<item.icon <item.icon

@ -23,6 +23,7 @@
"@types/react-dom": "^18.0.6", "@types/react-dom": "^18.0.6",
"eslint": "^8.24.0", "eslint": "^8.24.0",
"eslint-config-tih": "*", "eslint-config-tih": "*",
"prettier-plugin-tailwindcss": "^0.1.13",
"react": "^18.2.0", "react": "^18.2.0",
"tsup": "^6.2.3", "tsup": "^6.2.3",
"typescript": "^4.8.3" "typescript": "^4.8.3"

@ -11457,6 +11457,11 @@ prepend-http@^2.0.0:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
integrity sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA== integrity sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA==
prettier-plugin-tailwindcss@^0.1.13:
version "0.1.13"
resolved "https://registry.yarnpkg.com/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.1.13.tgz#ca1071361dc7e2ed5d95a2ee36825ce45f814942"
integrity sha512-/EKQURUrxLu66CMUg4+1LwGdxnz8of7IDvrSLqEtDqhLH61SAlNNUSr90UTvZaemujgl3OH/VHg+fyGltrNixw==
"prettier@>=2.2.1 <=2.3.0": "prettier@>=2.2.1 <=2.3.0":
version "2.3.0" version "2.3.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.0.tgz#b6a5bf1284026ae640f17f7ff5658a7567fc0d18"

Loading…
Cancel
Save