1.2.6 • Published 2 years ago

@wowissu/stylelint v1.2.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@wowissu/stylelint

Add extend into .stylelintrc.json for active the features.

// .stylelintrc.json
{
  // ...
  "extends": [
    "./node_modules/@wowissu/stylelint/recommanded",
    "./node_modules/@wowissu/stylelint/scss",
    "./node_modules/@wowissu/stylelint/order"
  ],
  // ...
}

@wowissu/stylelint/standard , @wowissu/stylelint/recommanded

stylelint-config-recommended stylelint-config-standard

Both are the base stylelint rules. pick one been your base.

@wowissu/stylelint/scss

stylelint-config-sass-guidelines stylelint-scss

Scss lint plugin.

@wowissu/stylelint/order

stylelint-order

Make properties order by rules as below.

  [
    "position",
    "top",
    "right",
    "bottom",
    "left",
    "z-index",
    "display",
    "justify-content",
    "align-items",
    "float",
    "clear",
    "overflow",
    "overflow-x",
    "overflow-y",
    "padding",
    "padding-top",
    "padding-right",
    "padding-bottom",
    "padding-left",
    "margin",
    "margin-top",
    "margin-right",
    "margin-bottom",
    "margin-left",
    "width",
    "min-width",
    "max-width",
    "height",
    "min-height",
    "max-height",
    "font-size",
    "font-family",
    "text-align",
    "text-justify",
    "text-indent",
    "text-overflow",
    "text-decoration",
    "white-space",
    "color",
    "background",
    "background-position",
    "background-repeat",
    "background-size",
    "background-color",
    "background-clip",
    "border",
    "border-style",
    "border-width",
    "border-color",
    "border-top-style",
    "border-top-width",
    "border-top-color",
    "border-right-style",
    "border-right-width",
    "border-right-color",
    "border-bottom-style",
    "border-bottom-width",
    "border-bottom-color",
    "border-left-style",
    "border-left-width",
    "border-left-color",
    "border-radius",
    "opacity",
    "filter",
    "list-style",
    "outline",
    "visibility",
    "box-shadow",
    "text-shadow",
    "resize",
    "transition"
  ]