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

Tailwind prettier #770

Merged
merged 3 commits into from
Jun 14, 2024
Merged

Tailwind prettier #770

merged 3 commits into from
Jun 14, 2024

Conversation

thrishank
Copy link
Contributor

  • 1 Added Prettier Plugin for Tailwind CSS in the devDependencies to ensure that Tailwind CSS classes are automatically sorted and formatted according to best practices.
  • 2 Formatted All Code Files

What does the plugin do ?

  • 1 Consistent Formatting: removes the extra spaces inside the className if there is any
  • 2 Automatic Class Sorting: The plugin automatically sorts Tailwind CSS classes based on a predefined order, which helps in maintaining a clean and organized code structure .

Resolves #769

#Example

Before Formatting

<div class="text-center         bg-blue-500 p-4 rounded-lg shadow-md hover:bg-blue-700">
  <p class="font-semibold text-white mt-2">
    Hello, World!
  </p>
</div>

After Formating

<div class="bg-blue-500 p-4 rounded-lg shadow-md hover:bg-blue-700 text-center">
  <p class="mt-2 font-semibold text-white">
    Hello, World!
  </p>
</div>

Checklist before requesting a review

  • I have performed a self-review of my code
  • I assure there is no similar/duplicate pull request regarding same issue

@siinghd
Copy link
Collaborator

siinghd commented Jun 14, 2024

Don't know how much we need this.
Merging sometimes some order is good

@siinghd siinghd merged commit 7232c99 into code100x:main Jun 14, 2024
1 check failed
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.

feature: add the prettier plugin for tailwind classes
2 participants