1
1
mirror of https://github.com/primer/css.git synced 2025-01-02 03:02:40 +03:00

Adding selector-no-type

This commit is contained in:
Jon Rohan 2016-08-30 16:03:08 -04:00
parent 6e855eb0fd
commit 9422a89c82
3 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# HEAD
- Removed: We don't need `scss/at-extend-no-missing-placeholder` anymore taken care of by `at-rule-blacklist`
- Added: Adding `selector-no-type` to the rules
# 1.0.0

View File

@ -165,6 +165,7 @@ This is a list of the lints turned on in this configuration, and what they do.
* [selector-max-specificity](http://stylelint.io/user-guide/rules/selector-max-specificity/): Limit the specificity of selectors to `"0,4,0"`.
* [selector-no-id](http://stylelint.io/user-guide/rules/selector-no-id/): Disallow id selectors.
* [selector-no-qualifying-type](http://stylelint.io/user-guide/rules/selector-no-qualifying-type/): Disallow qualifying a selector by type.
* [selector-no-type](http://stylelint.io/user-guide/rules/selector-no-type/): Disallow type selectors.
* [selector-pseudo-class-case](http://stylelint.io/user-guide/rules/selector-pseudo-class-case/): pseudo-class selectors should always be lowercase.
* [selector-pseudo-class-parentheses-space-inside](http://stylelint.io/user-guide/rules/selector-pseudo-class-parentheses-space-inside/): There must never be whitespace on the inside the parentheses.
* [selector-pseudo-element-case](http://stylelint.io/user-guide/rules/selector-pseudo-element-case/): pseudo-element selectors should always be lowercase.

View File

@ -310,6 +310,7 @@ module.exports = {
"selector-max-specificity": "0,4,0",
"selector-no-id": true,
"selector-no-qualifying-type": true,
"selector-no-type": true,
"selector-pseudo-class-case": "lower",
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-pseudo-element-case": "lower",