Skip to content

Commit

Permalink
Feat(stylelint): Specify the order of content within declaration blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Aug 16, 2024
1 parent f2e5071 commit 6319062
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/stylelint-config/rules/order.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
export default {
plugins: ['stylelint-order'],
rules: {
'order/order': [
'dollar-variables',
'custom-properties',
{
name: 'extend',
type: 'at-rule',
},
{
hasBlock: false,
name: 'include',
type: 'at-rule',
},
'declarations',
'rules',
{
hasBlock: true,
type: 'at-rule',
},
],
'order/properties-order': [
// All properties
'all',
Expand Down

0 comments on commit 6319062

Please sign in to comment.