tree: 9f5ab11bfe3a7a2d8e38871da7fe32242d082c9d [path history] [tgz]
  1. index.js
  2. README.md
node_modules/stylelint/lib/rules/selector-attribute-quotes/README.md

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 violations:

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

The following patterns are not considered violations:

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

"never"

Attribute values must never be quoted.

The following patterns are considered violations:

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

The following patterns are not considered violations:

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