1.1.0 • Published 10 months ago

stylelint-letter-spacing-negative-limit v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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]
    }
}
1.1.0

10 months ago

1.0.1

2 years ago

1.0.0

2 years ago