Skip to content

prettier path/to/file output differs from prettier . #174

Closed
tailwindlabs/tailwindcss
#11504
@FelixZY

Description

@FelixZY

What version of prettier-plugin-tailwindcss are you using?

0.3.0

What version of Tailwind CSS are you using?

3.2.7

What version of Node.js are you using?

v18.15.0

What package manager are you using?

npm

What operating system are you using?

mcr.microsoft.com/devcontainers/base:bullseye

Reproduction URL

Cannot be provided at this time

Describe your issue

  • When I run prettier -w ., I get class names sorted like card-compact group card
  • When I run prettier -w path/to/file, I get class names sorted like group card-compact card

This causes lint-staged to format our files differently from what is expected by our CI flow where we run prettier -c .

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions