Comments (2)
Hey! As mentioned in the readme, the Prettier plugin is only compatible with v3 and up. It’s “working” in v1 because installing the Prettier plugin will install v3 as a dependency but you’ll get problems like you’re seeing because apply behaved differently in v1 so it’s not safe to sort those classes.
Nothing we can really do here I’m afraid as we have no plans to support older versions. Would encourage you to upgrade your project instead 👍🏻
from prettier-plugin-tailwindcss.
To anyone having this issue, here's how I solved it:
Separate the transform
onto a line before any other modifiers, like this:
from prettier-plugin-tailwindcss.
Related Issues (20)
- Plugin not processing .erb files HOT 2
- Organize classes in .php files HOT 2
- Getting prettier error while linting with TW 3.4 HOT 19
- Prettier 3 and this plugin do not work as intended with Yarn 2 PNP HOT 12
- Excess whitespaces should be removed HOT 1
- tailwindFunction not working HOT 1
- VS Code format on save fights with prettier format (while linting) HOT 9
- Problem with eslint and prettier-plugin-tailwindcss [Prettier Plugin] HOT 6
- Inconsistent sorting between formatting all files and a single file HOT 2
- Bad sorting for 'dark:' pseudoselector HOT 2
- Styling an existing component doesn't seem to work in twin.macro/react-twc HOT 1
- `3xl:` ends up in front of `xl` and `2xl` HOT 2
- Breaks with import assertions (`assert { type: 'json' }`) HOT 4
- [v4] Order discrepancy between prettier-plugin-tailwindcss and intellisense HOT 1
- Please add support for `zackad/prettier-plugin-twig-melody` HOT 9
- If `node_modules` folder does not contain prettier-plugin-astro, it does not work HOT 1
- Modifier order does not change HOT 2
- Doesn't work with Shopify Liquid extension HOT 2
- reordering doesn't respect backets when there is a space HOT 2
- Sorting of extended values does not work properly HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettier-plugin-tailwindcss.