Giter Club home page Giter Club logo

stylelint-config-pretty-order's Introduction

stylelint-config-pretty-order

npm version npm downloads test

StyleLint config that prettifies CSS property order with stylelint-order.

Features

Grouping

This config sorts properties based on the following group:

  1. Position - e.g., top, right, inset, z-index, float
  2. Layout - e.g., display, width, height, margin, padding, border, grid, flex,
  3. Render - e.g., content-visibility, contain
  4. Overflow & Scroll - e.g., overflow, scroll-behavior
  5. Typography - e.g., font, text-align, white-space
  6. Appearance - e.g., opacity, color, background, outline, filter
  7. Transform & Animation - e.g., translate, animation, transition
  8. Misc - e.g., cursor, content

To check the complete property order, see test.css.

Supports new properties

This config supports newly added CSS properties, such as:

and so on.

Installation

Install stylelint and this package according to the package manager:

npm i -D stylelint stylelint-config-pretty-order
yarn add --dev stylelint stylelint-config-pretty-order
pnpm add -D stylelint stylelint-config-pretty-order
bun add -D stylelint stylelint-config-pretty-order

Usage

Add the following setting to your config:

{
  "extends": "stylelint-config-pretty-order"
}

Development

  • Clone this repository
  • Install dependencies using bun install

License

MIT

stylelint-config-pretty-order's People

Contributors

tsuyoshi84 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.