tqwewe / prettier-plugin-tailwind

Sort tailwind classes in HTML with Prettier.

Home Page:https://www.npmjs.com/package/prettier-plugin-tailwind

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prettier Plugin Tailwind not working with EJS

SavarJ opened this issue · comments

I have a Nodejs Express project. I am using EJS as the template partial language. This does not seem to work. Even after install this plugin and having prettier work, the automatic class sorting does not work.

Steps to reproduce the behavior:

  1. Install prettier
  2. Install prettier-plugin-prettier
  3. Try to save file to format or running npx prettier --check views/
  4. Does not work

Expected behavior
Sort my tailwind css classes

Screenshots
npx prettier --check views/ Checking formatting... [error] No supported files were found in the directory: "views/". All matched files use Prettier code style!

Versions:

  • prettier-plugin-tailwind version: 4.0.0
  • Operating system: Windows
  • NPM/Yarn version: 8.1.2

Hi @SavarJ, sadly I've just put a note on the README that this package is no longer maintained.
I suggest using the official prettier-plugin-tailwindcss package instead.