Skip to content

Commit

Permalink
disable no-descending-specificity
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceninja committed Nov 18, 2021
1 parent 1a98a42 commit 4e7258b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 5.0.2 - 2021-11-18

- Removed: `no-descending-specificity` rule, due to false positives (#216)

# 5.0.1 - 2021-11-17

- Unset all `pattern` rules that `stylelint-standard` set to kebab.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ This is a list of the lints turned on in this configuration (beyond the ones tha
- [`at-rule-empty-line-before`](https://github.com/stylelint/stylelint/blob/master/lib/rules/at-rule-empty-line-before/README.md): Require an empty line before at-rules. _disabled temporarily, pending [#2480](https://github.com/stylelint/stylelint/issues/2480)_
- [`comment-empty-line-before`](https://github.com/stylelint/stylelint/tree/master/lib/rules/comment-empty-line-before): Require an empty line before comments. _overriding SUIT rule to exclude the first nested comment in a block._
- [`max-line-length`](https://github.com/stylelint/stylelint/blob/master/lib/rules/max-line-length/): Limit line lengths to 80 characters for comments only. _overriding SUIT rule to ignore comments that contain URLs._
- [`no-descending-specificity`](https://stylelint.io/user-guide/rules/list/no-descending-specificity/): Disallow selectors of lower specificity from coming after overriding selectors of higher specificity. _disabled due to false positives in SCSS contexts._
- [`rule-empty-line-before`](https://github.com/stylelint/stylelint/blob/master/lib/rules/rule-empty-line-before/): Require an empty line before multi-line rules. _overriding SUIT rule to exclude the first multi-line rule in a block, and to ignore rules following comments._

#### Order
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ module.exports = {
ignorePattern: '/https?://[0-9,a-z]*.*/',
},
],
'plugin/no-low-performance-animation-properties': [true, { ignore: 'paint-properties' }],
'no-descending-specificity': null,
'rule-empty-line-before': [
'always-multi-line',
{
except: ['first-nested'],
ignore: ['after-comment'],
},
],
// rules from plugins
'order/order': [
[
'dollar-variables',
Expand All @@ -71,6 +72,7 @@ module.exports = {
'rules',
],
],
'plugin/no-low-performance-animation-properties': [true, { ignore: 'paint-properties' }],
'scss/declaration-nested-properties': 'never',
'scss/selector-no-redundant-nesting-selector': true,
},
Expand Down

0 comments on commit 4e7258b

Please sign in to comment.