UNPKG

linter-bundle

Version:

Ready-to use bundle of linting tools, containing configurations for ESLint, stylelint and markdownlint.

113 lines (83 loc) 1.67 kB
# selector-attribute-brackets-space-inside Require a single space or disallow whitespace on the inside of the brackets within attribute selectors. <!-- prettier-ignore --> ```css [ target=_blank ] /** ↑ ↑ * The space inside these two brackets */ ``` The [`fix` option](https://stylelint.io/user-guide/options/#fix) can automatically fix all of the problems reported by this rule. ## Options `string`: `"always"|"never"` ### `"always"` There _must always_ be a single space inside the brackets. The following patterns are considered problems: <!-- prettier-ignore --> ```css [target] {} ``` <!-- prettier-ignore --> ```css [ target] {} ``` <!-- prettier-ignore --> ```css [target ] {} ``` <!-- prettier-ignore --> ```css [target=_blank] {} ``` <!-- prettier-ignore --> ```css [ target=_blank] {} ``` <!-- prettier-ignore --> ```css [target=_blank ] {} ``` The following patterns are _not_ considered problems: <!-- prettier-ignore --> ```css [ target ] {} ``` <!-- prettier-ignore --> ```css [ target=_blank ] {} ``` ### `"never"` There _must never_ be whitespace on the inside the brackets. The following patterns are considered problems: <!-- prettier-ignore --> ```css [ target] {} ``` <!-- prettier-ignore --> ```css [target ] {} ``` <!-- prettier-ignore --> ```css [ target ] {} ``` <!-- prettier-ignore --> ```css [ target=_blank] {} ``` <!-- prettier-ignore --> ```css [target=_blank ] {} ``` <!-- prettier-ignore --> ```css [ target=_blank ] {} ``` The following patterns are _not_ considered problems: <!-- prettier-ignore --> ```css [target] {} ``` <!-- prettier-ignore --> ```css [target=_blank] {} ```