Show HN: Oxlint plugin to auto-fix non-canonical Tailwind classes
Developer releases Oxlint plugin to auto-correct non-canonical Tailwind CSS classes written by LLMs.
A developer called maharship2022 released an Oxlint plugin that automatically fixes non-canonical Tailwind CSS classes to match Tailwind's official formatting. The tool targets a specific problem: large language models often generate valid but non-standard Tailwind class names, and the plugin corrects them in bulk.
The plugin integrates with Oxlint, a JavaScript linter written in Rust, to detect Tailwind classes that deviate from canonical formatting and rewrite them to the versions Tailwind officially recommends. According to the Hacker News post, the creator framed the tool as a solution to clean up "slop" that LLMs write—a reference to the proliferation of AI-generated code snippets that may work but don't conform to project standards.
Tailwind CSS, the utility-first CSS framework, has a single correct representation for each class name. While LLMs often know the semantic intent behind a Tailwind class, they can misformat or misremember the exact syntax. For development teams using LLM-assisted code generation, maintaining consistency across class names is a quality-of-life issue; auto-fixing at the linting stage prevents manual cleanup.
The plugin was posted as a "Show HN" submission on Hacker News, a common venue for developers to debut small tools and gather feedback directly from a technical audience. The creator invited users to star the GitHub repository to signal interest, and the project had no comments at the time of posting.
No comments yet — start the thread.