Skip to content

Commit

Permalink
Refine order/order rule to account for @media rule usage
Browse files Browse the repository at this point in the history
- Do not be so strict with rule usage, it may make sense for blocks (e.g. @media) to be after other content
- Closes wagtail#37
  • Loading branch information
lb- committed Dec 3, 2023
1 parent 694f2b9 commit 460f67f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ module.exports = {
'no-empty-source': true,
// Mixins should always be first in declarations
'order/order': [
{
name: 'include',
type: 'at-rule',
},
'dollar-variables',
'custom-properties',
{ type: 'at-rule', hasBlock: false }, // @-rules that have no nesting.
'declarations',
],
'property-disallowed-list': [
Expand Down

0 comments on commit 460f67f

Please sign in to comment.