meteorlxy / eslint-plugin-prettier-vue

:ok_hand: ESLint plugin for Prettier formatting, which is better for Vue SFC
MIT License
115 stars 9 forks source link

Possibility to transfer it nicely when using tailwindcss #30

Closed vcharov closed 2 years ago

vcharov commented 2 years ago

Request / Idea

It would be nice to be able to transfer it nicely when using tailwindcss. This would make the code much more readable

Input

header.header-module(
  class=["bg-off-white shadow-main-header flex items-center gap-x-2 py-2 px-4", "lg:px-8"]
)

Expected Output

header.header-module(
  class=[
    "bg-off-white shadow-main-header flex items-center gap-x-2 py-2 px-4", 
    "lg:px-8"
  ]
)

Снимок 2022-09-08 17 45 12

meteorlxy commented 2 years ago

Well, this is actually handled by prettier itself, and has nothing to do with this plugin.

I think it is influenced by the printWidth in your prettier config.