1.0.1 • Published 10 years ago
stylelint-value-no-padding-auto v1.0.1
stylelint-value-no-padding-auto
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-autoThis 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-leftUsage
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
}
};