Skip to content
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

Merged
merged 4 commits into from
Feb 8, 2022
Merged

Conversation

larrycoal
Copy link
Contributor

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

@razbakov razbakov changed the base branch from beta to main February 8, 2022 21:12
@razbakov razbakov changed the base branch from main to beta February 8, 2022 21:12
Copy link
Contributor

@razbakov razbakov left a 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

pages/cities.vue Outdated Show resolved Hide resolved
.prettierrc Outdated Show resolved Hide resolved
@razbakov razbakov changed the title Prettier tailwindcss chore: add tailwindcss prettier plugin Feb 8, 2022
@razbakov razbakov changed the title chore: add tailwindcss prettier plugin chore: add tailwindcss prettier plugin #154 Feb 8, 2022
@razbakov razbakov added the chore A tedious but necessary task label Feb 8, 2022
.prettierrc Outdated
@@ -5,5 +5,6 @@
"useTabs": false,
"tabWidth": 2,
"endOfLine": "lf",
"trailingComma": "es5"
"trailingComma": "es5",
"tailwindConfig": "./tailwind.config.js"
Copy link
Contributor

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" }

Copy link
Contributor

@razbakov razbakov left a 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

@razbakov razbakov merged commit 170d8c7 into beta Feb 8, 2022
@razbakov razbakov deleted the prettier_tailwindcss branch February 8, 2022 21:59
@razbakov razbakov linked an issue Feb 8, 2022 that may be closed by this pull request
@razbakov
Copy link
Contributor

razbakov commented Feb 9, 2022

@best-lucky1030 did you see the linked issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore A tedious but necessary task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate tailwind prettier
2 participants