@mrhenry/stylelint-mrhenry-prop-order 2.0.9 → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/{order.js → order.cjs}
RENAMED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrhenry/stylelint-mrhenry-prop-order",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Mr. Henry's preferred order for CSS properties",
|
|
5
|
-
"main": "stylelint-mrhenry-prop-order.
|
|
5
|
+
"main": "stylelint-mrhenry-prop-order.cjs",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "npm run test:jest && npm run test:properties-list",
|
|
8
8
|
"test:jest": "c8 --100 jest",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"directory": "packages/prop-order"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
|
-
"order.
|
|
21
|
-
"stylelint-mrhenry-prop-order.
|
|
20
|
+
"order.cjs",
|
|
21
|
+
"stylelint-mrhenry-prop-order.cjs",
|
|
22
22
|
"LICENSE",
|
|
23
23
|
"README.md"
|
|
24
24
|
],
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"stylelint": "^14.16.1 || ^15.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"stylelint": "^15.
|
|
36
|
+
"stylelint": "^15.10.1"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const stylelint = require("stylelint");
|
|
2
|
-
const order = require('./order.
|
|
2
|
+
const order = require('./order.cjs');
|
|
3
3
|
const orderSet = new Set(order);
|
|
4
4
|
|
|
5
5
|
const ruleName = "@mrhenry/stylelint-mrhenry-prop-order";
|
|
@@ -35,8 +35,8 @@ const ruleFunction = (primaryOption, secondaryOptionObject, context) => {
|
|
|
35
35
|
parent = parent.parent;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
/* c8 ignore next */
|
|
38
39
|
if (!rule.nodes.length) {
|
|
39
|
-
/* c8 ignore next */
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
|