stylelint-letter-spacing-negative-limit

1.1.0 • Public • Published

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

/stylelint-letter-spacing-negative-limit/

    Package Sidebar

    Install

    npm i stylelint-letter-spacing-negative-limit

    Weekly Downloads

    2

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    2.94 kB

    Total Files

    3

    Last publish

    Collaborators

    • kawaguchi1102