1.0.1 • Published 8 years ago

stylelint-value-no-padding-auto v1.0.1

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

stylelint-value-no-padding-auto

Build Status

A stylelint custom rule to catch the invalid use of padding: auto.

This rule will cause stylelint to warn you whenever a padding property is caught using auto.

Installation

npm install stylelint-value-no-padding-auto

This plugin is compatible with v5.0.1+.

Details

a { /* OK */
  padding: 0
}

a { /* Not OK */
  padding: auto
}

This rule applies to the following padding properties.

padding
padding-top
padding-right
padding-bottom
padding-left

Usage

Add "stylelint-value-no-padding-auto" to your stylelint config plugins array, then add value-no-padding-auto to your rules, set to true.

As follows:

{
  "plugins": [
    "stylelint-value-no-padding-auto"
  ],
  "rules": {
    "value-no-padding-auto": true
  }
};