Socket
Socket
Sign inDemoInstall

stylelint-config-rational-order

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stylelint-config-rational-order

Stylelint config that sorts related property declarations by grouping together following the order: Positioning, Box Model, Typography, Visual, Animation, Other.


Version published
Maintainers
1
Install size
3.12 MB
Created

Readme

Source

stylelint-config-rational-order

.. image:: https://img.shields.io/npm/v/stylelint-config-rational-order.svg?style=flat-square :target: https://www.npmjs.com/package/stylelint-config-rational-order .. image:: https://img.shields.io/travis/constverum/stylelint-config-rational-order.svg?style=flat-square :target: https://travis-ci.org/constverum/stylelint-config-rational-order .. image:: https://img.shields.io/npm/l/stylelint-config-rational-order.svg?style=flat-square :target: https://www.npmjs.com/package/stylelint-config-recess-order

Stylelint config that sorts related property declarations by grouping together following the order:

  1. Positioning
  2. Box Model
  3. Typography
  4. Visual
  5. Animation
  6. Misc

.. code:: css

.declaration-order {
  /* Positioning */
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;

  /* Box Model */
  display: block;
  float: right;
  width: 100px;
  height: 100px;
  margin: 10px;
  padding: 10px;

  /* Typography */
  color: #888;
  font: normal 16px Helvetica, sans-serif;
  line-height: 1.3;
  text-align: center;

  /* Visual */
  background-color: #eee;
  border: 1px solid #888;
  border-radius: 4px;
  opacity: 1;

  /* Animation */
  transition: all 1s;

  /* Misc */
  user-select: none;
}

Usage

  1. Add stylelint and this package to your project:

.. code:: bash

npm install --save-dev stylelint stylelint-config-rational-order
# or, if you prefer yarn over npm:
yarn add --dev stylelint stylelint-config-rational-order

2. Add this package to the end of your extends array inside Stylelint configuration (.stylelintrc for example):

.. code:: javascript

{
  "extends": [
    // "stylelint-config-standard",
    "stylelint-config-rational-order"
  ]
}

Credits

| Code Guide by @mdo <http://codeguide.co/>_ | Code Guide by HTML Academy <https://github.com/htmlacademy/codeguide>_

Keywords

FAQs

Last updated on 13 Dec 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc