WordPress-Coding-Standards / stylelint-config-wordpress

WordPress shareable config for stylelint Note: Migrating to Gutenberg repo:

Home Page:https://github.com/WordPress/gutenberg/pull/22777

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `selector-attribute-quotes` rule

ntwb opened this issue · comments

Via stylelint/stylelint#1137

https://make.wordpress.org/core/handbook/best-practices/coding-standards/css/#selectors

Correct:

input[type="text"] {
    line-height: 1.1;
}

Incorrect:

input[type=text] {
    line-height: 1.1;
}

input[type='text'] {
    line-height: 1.1;
}

This is now merged, will be in the next stylelint release stylelint/stylelint#1506