Sha256: 320931cb54e4c12c573ffc575c5587d2a92bc071576114349b4809fc25b6f234
Contents?: true
Size: 1.18 KB
Versions: 23
Compression:
Stored size: 1.18 KB
Contents
# property-blacklist Specify a blacklist of disallowed properties. <!-- prettier-ignore --> ```css a { text-rendering: optimizeLegibility; } /** ↑ * This property */ ``` ## Options `array|string`: `["array", "of", "unprefixed", /properties/ or "regex"]|"property"|"/regex/"`|/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 violations: <!-- prettier-ignore --> ```css a { text-rendering: optimizeLegibility; } ``` <!-- prettier-ignore --> ```css a { animation: my-animation 2s; color: pink; } ``` <!-- prettier-ignore --> ```css a { -webkit-animation: my-animation 2s; } ``` <!-- prettier-ignore --> ```css a { background: pink; } ``` <!-- prettier-ignore --> ```css a { background-size: cover; } ``` The following patterns are _not_ considered violations: <!-- prettier-ignore --> ```css a { color: pink; } ``` <!-- prettier-ignore --> ```css a { no-background: sure; } ```
Version data entries
23 entries across 23 versions & 1 rubygems