-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add tailwindcss prettier plugin #154 #165
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need also to reformat all the files
.prettierrc
Outdated
@@ -5,5 +5,6 @@ | |||
"useTabs": false, | |||
"tabWidth": 2, | |||
"endOfLine": "lf", | |||
"trailingComma": "es5" | |||
"trailingComma": "es5", | |||
"tailwindConfig": "./tailwind.config.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prettier throws this message:
Ignored unknown option { tailwindConfig: "./tailwind.config.js" }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i fixed it, merging now
@best-lucky1030 did you see the linked issue? |
What Changed
Integrated prettier-plugin-tailwindcss
How to use it
Should reformat tailwindcss class on save or run ' npx prettier --write . ' to reformat all files or 'npx prettier --write /file_path' to reformat a particular file