Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 493 Bytes

File metadata and controls

39 lines (27 loc) · 493 Bytes

selector-attribute-operator-blacklist

Specify a blacklist of disallowed attribute operators.

a[target="_blank"] { }
/**     ↑
 * These operators */

Options

array|string: "["array", "of", "operators"]|"operator"

Given:

[ "*=" ]

The following patterns are considered warnings:

[class*="test"] { }

The following patterns are not considered warnings:

a[target] { }
a[target="_blank"] { }
[class|="top"] { }