Coder Social home page Coder Social logo

aacn / eslint-plugin-tailwind-classname-order Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 164 KB

Sort tailwind className strings by a given order-config

Home Page: https://www.npmjs.com/package/@aacn.eu/eslint-plugin-tailwind-classname-order

License: MIT License

JavaScript 4.11% TypeScript 95.56% Shell 0.19% CSS 0.14%
classnames cleanup eslint eslint-plugin organization prettier structure tailwindcss utility-classes

eslint-plugin-tailwind-classname-order's People

Contributors

marlonaacn avatar mauricearikoglu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

volkandkaya

eslint-plugin-tailwind-classname-order's Issues

Empty template string part, causing undefined to be added

When trying to order an object like this:
<button className={``rounded-full bg-white ${open ? 'absolute -top-3.5 -right-3.5' : null} ``} />

The sanitized version will look like this:
<button undefined className={``rounded-full bg-white ${open ? 'absolute -top-3.5 -right-3.5' : null} ``} />

This is caused by the empty part after the ${} variable section.

Tailwind Gradient not respected

"via-green-200/25 to-yellow-300/10 h-6 flex flex-row px-1.5 -space-x-2 bg-slate-100/80 bg-gradient-to-r from-blue-300/10 backdrop-blur" should be formatted as "h-6 flex flex-row px-1.5 -space-x-2 bg-slate-100/80 bg-gradient-to-r from-blue-300/10 via-green-200/25 to-yellow-300/10 backdrop-blur"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.