tqwewe / prettier-plugin-tailwind

Sort tailwind classes in HTML with Prettier.

Home Page:https://www.npmjs.com/package/prettier-plugin-tailwind

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add prettier config options

tqwewe opened this issue · comments

Currently there are no options such as:

pluginOrder: [
  'container',
  'display',
  ...
]

https://github.com/tailwindcss/tailwindcss/tree/master/src/plugins

Need a method of adjusting the order of classes.

Implemented. Available under prettier config with:

twPluginsOrder: "container,position,inset"