You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If anyone has the option "Format and Save" active and finds the plugin prettier-plugin-tailwindcss annoying during development, they can only enable it at commit time, or CI in this way.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If anyone has the option "Format and Save" active and finds the plugin
prettier-plugin-tailwindcss
annoying during development, they can only enable it at commit time, or CI in this way.prettier.config.js
Now your editor won't run the plugin when using "Format and Save" (make sure to reload editor after applying these changes)
When you want to include it, add
INCLUDE_TAILWINDCSS_PRETTIER=true
before the prettier command.e.g. doing this in terminal
INCLUDE_TAILWINDCSS_PRETTIER=true npx prettier --write --ignore-unknown *
e.g. doing this in git hooks (husky) and lint-staged
Beta Was this translation helpful? Give feedback.
All reactions