Skip to content

Commit

Permalink
fix: prevent Prettier from formatting CSS files adding spaces after s…
Browse files Browse the repository at this point in the history
…ingle colons

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 and theodorusclarence committed Dec 17, 2023
1 parent af7a5ea commit 910b218
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

0 comments on commit 910b218

Please sign in to comment.