Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago | |
index.js | 2 years ago |
Require or disallow quotes for attribute values.
[target="_blank"] {}
/** ↑ ↑
* These quotes */
The fix
option can automatically fix most of the problems reported by this rule.
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] {}