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

Tidy whitespace and remove duplicates #70

Merged
merged 9 commits into from
Apr 19, 2022
Merged

Tidy whitespace and remove duplicates #70

merged 9 commits into from
Apr 19, 2022

Conversation

bradlc
Copy link
Contributor

@bradlc bradlc commented Apr 19, 2022

This PR adds a couple of additional class list formatting features to the plugin:

  1. Whitespace tidying. Excess whitespace is removed from single-line class lists:
    - <div className="    sm:p-0   p-4  " />
    + <div className="p-4 sm:p-0" />
  2. Duplicate removal. Duplicate classes are removed from class lists:
    - <div className="sm:p-0 p-4 p-4" />
    + <div className="p-4 sm:p-0" />

@bradlc bradlc merged commit e0f9bd5 into main Apr 19, 2022
@hyunbinseo
Copy link

스크린샷 2022-04-20 오전 9 43 42

Link for this PR in the v0.1.9 release is incorrect.

bradlc added a commit that referenced this pull request Apr 20, 2022
@bradlc bradlc mentioned this pull request Apr 20, 2022
bradlc added a commit that referenced this pull request Apr 20, 2022
@ruoruochen
Copy link

ruoruochen commented Aug 19, 2022

Why doesn't it work here? "prettier-plugin-tailwindcss": "^0.1.13",

karlhorky added a commit to upleveled/prettier-plugin-tailwindcss that referenced this pull request May 23, 2024
karlhorky added a commit to upleveled/prettier-plugin-tailwindcss that referenced this pull request May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants