1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 03:27:29 -04:00
notes/node_modules/stylelint/lib/rules/property-blacklist
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00
..
index.js Initial commit 2017-03-09 13:16:08 -05:00
README.md Initial commit 2017-03-09 13:16:08 -05:00

property-blacklist

Specify a blacklist of disallowed properties.

a { text-rendering: optimizeLegibility; }
/** ↑
 * These properties */

Options

array|string: ["array", "of", "unprefixed", "properties" or "regex"]|"property"|"/regex/"

If a string is surrounded with "/" (e.g. "/^background/"), it is interpreted as a regular expression. This allows, for example, easy targeting of shorthands: /^background/ will match background, background-size, background-color, etc.

Given:

[ "text-rendering", "animation", "/^background/" ]

The following patterns are considered warnings:

a { text-rendering: optimizeLegibility; }
a {
  animation: my-animation 2s;
  color: pink;
}
a { -webkit-animation: my-animation 2s; }
a { background: pink; }
a { background-size: cover; }

The following patterns are not considered warnings:

a { color: pink; }
a { no-background: sure; }