Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 592 Bytes

File metadata and controls

36 lines (30 loc) · 592 Bytes

stylelint-letter-spacing-negative-limit

Limit negative letter-spacing values.

a {
  letter-spacing: -1px;
}
/**               ↑
 *                This negative value */

Exceptionally, the following patterns pass the rule.

.class {
  --foo: -10px;
  letter-spacing: var(--foo);
}
/**                   ↑
 *                    This variable value is -10px */

Usage

// .stylelintrc
{
    "plugins": [
        "stylelint-letter-spacing-negative-limit"
    ],
    "rules": {
        "plugin/stylelint-letter-spacing-negative-limit": [true]
    }
}