diff --git a/CHANGELOG.md b/CHANGELOG.md index 515d9354..e8c71cbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/README.md b/README.md index 61f90665..b0e7e1e6 100644 --- a/README.md +++ b/README.md @@ -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`. diff --git a/index.js b/index.js index 1f4d7a00..b379d6f3 100644 --- a/index.js +++ b/index.js @@ -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",