UNPKG
stylelint-order
Version:
latest (8.1.3)
8.1.3
8.1.2
8.1.1
8.1.0
8.0.0
7.0.1
7.0.0
6.0.4
6.0.3
6.0.2
6.0.1
6.0.0
5.0.0
4.1.0
4.0.0
3.1.1
3.1.0
3.0.1
3.0.0
2.2.1
2.2.0
2.1.0
2.0.0
1.0.0
0.8.1
0.8.0
0.7.0
0.6.0
0.5.0
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.2.2
0.2.1
0.2.0
0.1.0
A collection of order related linting rules for Stylelint.
stylelint-order
/
rules
/
properties-alphabetical-order
/
isOrderCorrect.js
10 lines
(7 loc)
•
213 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ checkChild }
from
'./checkChild.js'
;
export
function
isOrderCorrect
(
node
) {
const
allPropData = [];
return
node.
every
(
function
isChildCorrect
(
child
) {
return
!
checkChild
(child, allPropData); }); }