The project is in a healthy, maintained state
It sorts Tailwind classes in your helpers and ERB files and sorts them
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

SyntaxTree plugin: tailwindcss

SyntaxTree can be used to format:

  • .rb files that render HTML, e.g. Rails helpers
  • .haml files (using the haml plugin)
  • .html.erb files (using the erb plugin)

All of these can contain TailwindCSS classes and this plugin will help you keep them in order, just like the official prettier plugin would.

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add syntax_tree-tailwindcss

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install syntax_tree-tailwindcss

Usage

Example:

$ stree write --plugins=erb,tailwindcss app/helpers/**/*.rb app/views/**/*.html.erb

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/spect88/syntax_tree-tailwindcss.

License

The gem is available as open source under the terms of the MIT License.