Sha256: 87b9afd32a8a702674ab26e6abc1a9821abb78c872dc0bcdde36cf5338dda48c

Contents?: true

Size: 721 Bytes

Versions: 23

Compression:

Stored size: 721 Bytes

Contents

# selector-attribute-operator-whitelist

Specify a whitelist of allowed attribute operators.

<!-- prettier-ignore -->
```css
[target="_blank"] {}
/**    ↑
 * This operator */
```

## Options

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

Given:

```
["=", "|="]
```

The following patterns are considered violations:

<!-- prettier-ignore -->
```css
[class*="test"] {}
```

<!-- prettier-ignore -->
```css
[title~="flower"] {}
```

<!-- prettier-ignore -->
```css
[class^="top"] {}
```

The following patterns are _not_ considered violations:

<!-- prettier-ignore -->
```css
[target] {}
```

<!-- prettier-ignore -->
```css
[target="_blank"] {}
```

<!-- prettier-ignore -->
```css
[class|="top"] {}
```

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trusty-cms-5.0.7 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-5.0.6 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-5.0.5 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-5.0.4 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-5.0.3 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-5.0.2 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-5.0.1 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-4.3.5 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-5.0.0 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-4.3.4 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-4.3.3 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-4.3.2 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-4.3.1 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-4.3 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-4.2.3 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-4.2.2 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-4.2.1 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-4.2 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-4.1.9 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md
trusty-cms-4.1.8 node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md