Skip to content

Commit 9a887ac

Browse files
committed
add rule that mixins should always before other declarations - PLATO-1432
1 parent d19158b commit 9a887ac

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

index.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,18 @@
33
module.exports = {
44
"plugins": [
55
"stylelint-stylistic",
6-
"stylelint-selector-tag-no-without-class"
6+
"stylelint-selector-tag-no-without-class",
7+
"stylelint-order",
78
],
89
"rules": {
10+
"order/order": [
11+
[
12+
"less-mixins",
13+
],
14+
{
15+
"unspecified": "bottom"
16+
}
17+
],
918
"plugin/selector-tag-no-without-class": ["div", "span"],
1019
"stylistic/at-rule-name-case": "lower",
1120
"stylistic/at-rule-name-space-after": "always-single-line",

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"postcss": "^8.4.5",
1414
"postcss-less": "^6.0.0",
1515
"stylelint": "^15.10.0",
16+
"stylelint-order": "^6.0.3",
1617
"stylelint-selector-tag-no-without-class": "^2.0.5",
1718
"stylelint-stylistic": "^0.4.3"
1819
}

0 commit comments

Comments
 (0)