Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 461 Bytes

File metadata and controls

50 lines (36 loc) · 461 Bytes

selector-no-attribute

Disallow attribute selectors.

   a[rel="external"] {}
/** ↑
 * This type of selector */

Options

true

The following patterns are considered warnings:

[foo] {}
a[rel="external"] {}
a,
.foo[type="text"] {}
a > [foo] {}

The following patterns are not considered warnings:

.foo {}
#foo {}
.bar > #foo {}
#foo.bar {}