Skip to content

Commit

Permalink
fix: prettier messes with tailwind css class
Browse files Browse the repository at this point in the history
When editing the global.css file, Prettier automatically formats the code from `md:text-5xl` to `md: text-5xl`, adding a space after a single colon. This behavior is not desired.
  • Loading branch information
AdityaSetyadi authored Dec 17, 2023
1 parent af7a5ea commit e79de32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"[css]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
// Tailwind CSS Autocomplete, add more if used in projects
"tailwindCSS.classAttributes": [
"class",
Expand Down

1 comment on commit e79de32

@vercel
Copy link

@vercel vercel bot commented on e79de32 Dec 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.