Skip to content

Prettier Plugin Tailwind not working with EJS #52

@SavarJ

Description

@SavarJ

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions