Skip to content

The plugin isn't sorting the classes when I hit save but it works when npx prettier --write index.html #10717

Answered by mybearworld
codedrian asked this question in Help
Discussion options

You must be logged in to vote

It's not Tailwind's fault, Prettier updated. You need a .prettierrc.

{
  "plugins": ["prettier-plugin-tailwindcss"]
}

Replies: 7 comments 22 replies

Comment options

You must be logged in to vote
7 replies
@codedrian
Comment options

@vinaykulk621
Comment options

@ch33kaboo
Comment options

@gonzaleza61
Comment options

@Slegendz
Comment options

Comment options

You must be logged in to vote
12 replies
@mybearworld
Comment options

Answer selected by codedrian
@Dark-knight-a
Comment options

@NickNaskida
Comment options

@FabianMontoya
Comment options

@Rewolbebol
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@Soliha17
Comment options

@wjthompso
Comment options

@wjthompso
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet