prettier-plugin-tailwind icon indicating copy to clipboard operation
prettier-plugin-tailwind copied to clipboard

Prettier Plugin Tailwind not working with EJS

Open SavarJ opened this issue 3 years ago • 1 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

SavarJ avatar Mar 10 '22 12:03 SavarJ

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.

tqwewe avatar Mar 16 '22 10:03 tqwewe