1
1
mirror of https://github.com/primer/css.git synced 2024-12-20 12:42:07 +03:00

Merge pull request #11 from primer/remove-class-pattern

Remove selector-class-pattern rule from config
This commit is contained in:
Jon Rohan 2017-01-03 11:31:30 -05:00 committed by GitHub
commit 7bb2e10bca
3 changed files with 2 additions and 7 deletions

View File

@ -1,5 +1,7 @@
# HEAD
- Removed: `selector-class-pattern` from config. https://github.com/primer/stylelint-config-primer/pull/11
# 1.3.0
- Added: `length-zero-no-unit` to disallow zero values with units eg `0px`

View File

@ -161,7 +161,6 @@ This is a list of the lints turned on in this configuration, and what they do.
* [selector-attribute-brackets-space-inside](http://stylelint.io/user-guide/rules/selector-attribute-brackets-space-inside/): There must never be whitespace on the inside the brackets.
* [selector-attribute-operator-space-after](http://stylelint.io/user-guide/rules/selector-attribute-operator-space-after/): There must never be a single after after the operator.
* [selector-attribute-operator-space-before](http://stylelint.io/user-guide/rules/selector-attribute-operator-space-before/): There must never be a single before after the operator.
* [selector-class-pattern](http://stylelint.io/user-guide/rules/selector-class-pattern/): Selectors must match the regex `^(?!(js\\-))[a-z\\-0-9]+$`.
* [selector-combinator-space-after](http://stylelint.io/user-guide/rules/selector-combinator-space-after/): There must always be a single space after the combinators.
* [selector-combinator-space-before](http://stylelint.io/user-guide/rules/selector-combinator-space-before/): There must always be a single space before the combinators.
* [selector-max-compound-selectors](http://stylelint.io/user-guide/rules/selector-max-compound-selectors/): Limit the number of compound selectors in a selector to `3`.

View File

@ -296,12 +296,6 @@ module.exports = {
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-class-pattern": [
"^(?!(js\\-))[a-z\\-0-9]+$",
{
"message": "Selector should be written in lowercase with hyphens (selector-class-pattern)"
}
],
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-list-comma-newline-after": "always",