prettier-plugin-tailwindcss
javascript

prettier-plugin-tailwindcss | javascript | |
---|---|---|
22 | 145 | |
6,630 | 147,325 | |
3.0% | 0.2% | |
8.0 | 5.8 | |
3 days ago | 9 months ago | |
TypeScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
prettier-plugin-tailwindcss
-
Vanilla JavaScript Support for Tailwind Plus – Tailwind CSS
You can use the Tailwind Prettier plugin to automate this: https://github.com/tailwindlabs/prettier-plugin-tailwindcss. I'm not sure if it would support the precise grouping and sorting you prefer, but it may be worth it anyway!
-
Should you stop using prettier? Maybe
For years, I've been prettier's biggest fan... Introducing it to every codebase at a new role, instantly adding it to any new repository, installing additional plugins such as tailwind or xml and of course, ensuring the "Format on save" option is switched on.
-
Build a Real-Time Voting System with Strapi & Instant DB: Part 2
prettier-plugin-tailwindcss: A plugin for Prettier that sorts your Tailwind CSS classes. It organizes Tailwind utility classes in a specific order to maintain consistency across the project.
- Dicas para escrever Tailwind CSS de forma limpa
-
I made a Prettier plugin that sorts your Tailwind classes... randomly!
Thats it! Still have problems? Check out the official prettier-plugin-tailwindcss documentation.
-
How to Setup Tailwind CSS Automatic Class Sorting with Prettier in New and Existing Projects
For additional configuration options like sorting classes in non-standard attributes, visit the prettier-plugin-tailwindcss documentation.
-
Multipage Vite Vanilla JavaScript
To automatically sort TailwindCSS classes when using Prettier, you can follow this documentation.
-
Tailwind CSS for frontend teams: From settings to rules
Since this was a problem that many people had already encountered, there was already a solution. The first thing I found was Tailwind's official Prettier plugin, which ensures that class names are always ordered according to a certain rule. Best of all, it's auto-correcting, so I don't accidentally miss something or commit a different order.
-
Use TailwindCSS prefixes for shared design system components
It's not as if the correct order for the rules is mysterious. It's implemented in the Tailwind compiler. Tools like prettier-plugin-tailwindcss, which automatically sorts the class names in your HTML code to match the order in which Tailwind generates them in your CSS output, use a public API in Tailwind to get this order.
-
Tailwind CSS Tips and Tricks Worth Knowing
Other than that, you can get Prettier sorting your classes with the Tailwind Prettier plugin. And one more quality-of-life extension that might help your eye sores from a long list of classes is Tailwind Fold.
javascript
-
Share Your CLAUDE.mds
TL;DR https://claudemd.dev is where you can find guidelines to make your vibe coding more effective
If you haven't used claude code, I highly recommend you check it out. You may have used other AI tools in development, but being a cli with a refined "plan" step has revolutionized my development workflow. The fact that I can dispatch three prompts to run concurrently, and reliably trust the actions being taken feels incredible. I am spending less time thinking about code and more about the higher level direction of the code.
If you want claude code to be more reliable in its output, it can further be directed by using CLAUDE.md files. These files are included in the plan step and significantly improve the quality of its output. What makes a useful CLAUDE.md is similar to a well written style guide [1]. By providing a set of guidelines for what patterns to follow, the LLM can be more focused when building its plan. In a sense, a CLAUDE.md can be thought of as a "language semantics" for your codebase or directory for how to "compile" your thoughts into actions. Fortunately, you don't need to write your semantics in BNF [2], but the completeness of your semantics matter nonetheless. Without forethought, an LLM will happily come up with its own plan for your codebase.
I thought of and published https://claudemd.dev last night with the idea that sharing these files will improve the quality of code that we will be writing for this next abstraction of software development.
If you want to learn more about these files, I recommend reading this https://claudelog.com/mechanics/claude-md-supremacy.
[1] https://github.com/airbnb/javascript
- Migrating a JavaScript Project from Prettier and ESLint to BiomeJS
-
Error Propagation with Custom Error Types
Airbnb JavaScript Style Guide
-
Step-by-Step Guide to Front-end Engineering — A Comprehensive Tutorial
airbnb (101k stars, English version), airbnb-Chinese version
- ESLint v9 Support
- From Chaos to Clarity: Formatting React Code for a Clean and Readable Codebase
-
Just use this Next.js Eslint Configuration
AirBbB. I usually start here, but Vercel's config covered most of what I care about for both React and Node code styling.
-
GitHub Repositories Every Developer Should Know: An In-Depth Guide
Visit the repository to read the style rules.
- The CLEAN Framework: A 5-Step Blueprint for Writing Bug-Free, Maintainable JavaScript Code
-
18 GitHub Repos to Learn JavaScript
1 . Airbnb JavaScript Style Guide Airbnb, Inc. is an American vacation rental online marketplace company based in San Francisco, California, United States.
What are some alternatives?
headwind - An opinionated Tailwind CSS class sorter built for Visual Studio Code
You-Dont-Know-JS - A book series (2 published editions) on the JS language.
eslint-plugin-tailwindcss - ESLint plugin for Tailwind CSS usage
33-js-concepts - 📜 33 JavaScript concepts every developer should know.
ts-node-dev - Compiles your TS app and restarts when files are modified.
nodebestpractices - :white_check_mark: The Node.js best practices list (July 2024)
