@mrhenry/stylelint-mrhenry-prop-order 1.0.0 → 1.0.2
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/README.md +37 -2
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
|
-
# @mrhenry/stylelint-mrhenry-prop-order
|
|
1
|
+
# [@mrhenry/stylelint-mrhenry-prop-order](https://www.npmjs.com/package/@mrhenry/stylelint-mrhenry-prop-order) [<img src="https://wp.assets.sh/uploads/sites/2963/2021/09/mrhenry-gezicht-small.png" alt="Mr. Henry's logo." width="90" height="90" align="right">](https://www.mrhenry.be/)
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@mrhenry/stylelint-mrhenry-prop-order)
|
|
4
|
+
|
|
5
|
+
Mr. Henry's preferred order for CSS properties.
|
|
6
|
+
|
|
7
|
+
This package does not group properties.
|
|
8
|
+
It only sorts them within a "imaginary sections".
|
|
9
|
+
|
|
10
|
+
Acts as a separator between sections :
|
|
11
|
+
- ignored declarations
|
|
12
|
+
- empty lines
|
|
13
|
+
- comments
|
|
14
|
+
|
|
15
|
+
Ignored declarations :
|
|
16
|
+
- custom properties
|
|
17
|
+
- vendor prefixed CSS
|
|
18
|
+
|
|
19
|
+
```css
|
|
20
|
+
.foo {
|
|
21
|
+
a: 0; /* section : 1 */
|
|
22
|
+
b: 0; /* section : 1 */
|
|
23
|
+
|
|
24
|
+
c: 0; /* section : 2 */
|
|
25
|
+
d: 0; /* section : 2 */
|
|
26
|
+
/* a comment */
|
|
27
|
+
e: 0; /* section : 3 */
|
|
28
|
+
f: 0; /* section : 3 */
|
|
29
|
+
--a: 0; /* ignored */
|
|
30
|
+
--b: 0; /* ignored */
|
|
31
|
+
-webkit-foo: 0; /* ignored */
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## List of properties :
|
|
36
|
+
|
|
37
|
+
The list is sourced from [`@webref/css`](https://www.npmjs.com/package/@webref/css).
|
|
2
38
|
|
|
3
|
-
Our preferred order of CSS properties.
|
|
4
39
|
|
|
5
40
|
## To update properties :
|
|
6
41
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrhenry/stylelint-mrhenry-prop-order",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Mr. Henry's preferred order for CSS properties",
|
|
5
|
+
"main": "stylelint-mrhenry-prop-order.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "npm run test:jest && npm run test:properties-list",
|
|
8
8
|
"test:jest": "c8 --100 jest",
|
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
},
|
|
11
11
|
"author": "Mr. Henry",
|
|
12
12
|
"license": "MIT",
|
|
13
|
+
"homepage": "https://github.com/mrhenry/stylelint-mrhenry-prop-order",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/mrhenry/stylelint-mrhenry-prop-order.git"
|
|
17
|
+
},
|
|
13
18
|
"files": [
|
|
14
19
|
"order.js",
|
|
15
20
|
"stylelint-mrhenry-prop-order.js",
|