Comments (3)
Hey! The tailwindcss/classnames-order
ESLint rule is not something we made, that's a third-party thing I'd never seen until today so the order they are using is just different and not connected to the ordering we use in the Prettier plugin. Recommend disabling for sure if you want to use the Prettier plugin. If you'd like to use them together maybe the maintainer of that plugin can update it to use the same sort order we use here 👍🏻
from prettier-plugin-tailwindcss.
As a workaround, I turn off the rule tailwindcss/classnames-order
in .eslintrc.cjs
:
const eslintRC = {
// ...
rules: {
'tailwindcss/classnames-order': 'off',
},
}
module.exports = eslintRC
from prettier-plugin-tailwindcss.
Great! Thanks for the quick answer! @adamwathan :)
from prettier-plugin-tailwindcss.
Related Issues (20)
- Cannot sort classes in nunjucks HOT 2
- The plugin does not work with a shared prettier config HOT 9
- tracking-tight order is causing issue HOT 9
- Sorting of transparent colors HOT 4
- SyntaxError: Identifier 'require' has already been declared HOT 3
- Sorting does not work with Angular class HostBinding HOT 2
- Sorting of extended/new attributes HOT 25
- Error: ENOENT: no such file or directory, can not find path to preflight.css HOT 2
- plugin doesn't work in VSCode HOT 3
- 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 7
- 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
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.