Skip to content

Commit ccf4c12

Browse files
committed
Feat(stylelint): Specify the order of content within declaration blocks
1 parent 3ef4bf1 commit ccf4c12

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/stylelint-config/rules/order.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
export default {
22
plugins: ['stylelint-order'],
33
rules: {
4+
'order/order': [
5+
'dollar-variables',
6+
'custom-properties',
7+
{
8+
name: 'extend',
9+
type: 'at-rule',
10+
},
11+
{
12+
hasBlock: false,
13+
name: 'include',
14+
type: 'at-rule',
15+
},
16+
'declarations',
17+
'rules',
18+
],
419
'order/properties-order': [
520
// All properties
621
'all',

0 commit comments

Comments
 (0)