Skip to content

Instantly share code, notes, and snippets.

@omarr45
Created August 22, 2023 16:25
Show Gist options
  • Save omarr45/b9443dc7c3b8ca90ebc69a1a26afed42 to your computer and use it in GitHub Desktop.
Save omarr45/b9443dc7c3b8ca90ebc69a1a26afed42 to your computer and use it in GitHub Desktop.
TailwindCSS + Prettier + Asro
{
"plugins": ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
"overrides": [
{
"files": ["**/*.astro"],
"options": {
"parser": "astro",
"singleQuote": true,
"jsxSingleQuote": true
}
}
]
}
{
"devDependencies": {
"prettier": "^3.0.2",
"prettier-plugin-astro": "^0.11.1",
"prettier-plugin-tailwindcss": "^0.5.3"
}
}
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.requireConfig": true,
"[astro]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment