1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-01 03:17:30 -04:00
notes/node_modules/stylelint/lib/rules/selector-attribute-quotes
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

selector-attribute-quotes

Require or disallow quotes for attribute values.

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

Options

string: "always"|"never"

"always"

Attribute values must always be quoted.

The following patterns are considered warnings:

[title=flower] {}
[class^=top] {}

The following patterns are not considered warnings:

[title] {}
[target="_blank"] {}
[class|="top"] {}
[title~='text'] {}
[data-attribute='component'] {}

"never"

Attribute values must never be quoted.

The following patterns are considered warnings:

[target="_blank"] {}
[class|="top"] {}
[title~='text'] {}
[data-attribute='component'] {}

The following patterns are not considered warnings:

[title] {}
[title=flower] {}
[class^=top] {}