@leancodepl/stylelint-config 7.1.0

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 ADDED
@@ -0,0 +1,11 @@
1
+ # stylelint-config
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build stylelint-config` to build the library.
8
+
9
+ ## Running unit tests
10
+
11
+ Run `nx test stylelint-config` to execute the unit tests via [Jest](https://jestjs.io).
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@leancodepl/stylelint-config",
3
+ "version": "7.1.0",
4
+ "main": "src/index.json",
5
+ "files": [
6
+ "src"
7
+ ],
8
+ "directories": {
9
+ "src": "src"
10
+ },
11
+ "dependencies": {
12
+ "stylelint": ">=14.0.1",
13
+ "stylelint-config-prettier": ">=9.0.3",
14
+ "stylelint-config-recommended-scss": ">=6.0.0",
15
+ "stylelint-order": ">=5.0.0",
16
+ "stylelint-prettier": ">=2.0.0",
17
+ "stylelint-rscss": ">=0.4.0"
18
+ },
19
+ "peerDependencies": {
20
+ "prettier": ">=2.1.2"
21
+ }
22
+ }
package/src/index.json ADDED
@@ -0,0 +1 @@
1
+ { "extends": ["./lib/index.json", "./lib/scss.json"] }
@@ -0,0 +1,309 @@
1
+ {
2
+ "extends": ["stylelint-prettier/recommended"],
3
+ "plugins": ["stylelint-order"],
4
+ "rules": {
5
+ "length-zero-no-unit": true,
6
+
7
+ "order/order": [
8
+ "custom-properties",
9
+ "dollar-variables",
10
+ {
11
+ "type": "at-rule",
12
+ "name": "extend"
13
+ },
14
+ {
15
+ "type": "at-rule",
16
+ "name": "include",
17
+ "hasBlock": false
18
+ },
19
+ {
20
+ "type": "at-rule",
21
+ "name": "mixin",
22
+ "hasBlock": false
23
+ },
24
+ "declarations",
25
+ {
26
+ "type": "at-rule",
27
+ "name": "include",
28
+ "hasBlock": true
29
+ },
30
+ {
31
+ "type": "at-rule",
32
+ "name": "mixin",
33
+ "hasBlock": true
34
+ },
35
+ "rules",
36
+ "at-rules"
37
+ ],
38
+ "order/properties-order": [
39
+ {
40
+ "groupName": "Special",
41
+ "emptyLineBefore": "always",
42
+ "properties": ["composes", "@import", "@extend", "@mixin", "@at-root"]
43
+ },
44
+ {
45
+ "groupName": "Positioning",
46
+ "emptyLineBefore": "always",
47
+ "properties": ["position", "top", "right", "bottom", "left", "z-index"]
48
+ },
49
+ {
50
+ "groupName": "Box Model",
51
+ "emptyLineBefore": "always",
52
+ "noEmptyLineBetween": true,
53
+ "properties": [
54
+ "display",
55
+ "flex",
56
+ "flex-basis",
57
+ "flex-direction",
58
+ "flex-flow",
59
+ "flex-grow",
60
+ "flex-shrink",
61
+ "flex-wrap",
62
+ "grid",
63
+ "grid-area",
64
+ "grid-auto-rows",
65
+ "grid-auto-columns",
66
+ "grid-auto-flow",
67
+ "grid-gap",
68
+ "grid-row",
69
+ "grid-row-start",
70
+ "grid-row-end",
71
+ "grid-row-gap",
72
+ "grid-column",
73
+ "grid-column-start",
74
+ "grid-column-end",
75
+ "grid-column-gap",
76
+ "grid-template",
77
+ "grid-template-areas",
78
+ "grid-template-rows",
79
+ "grid-template-columns",
80
+ "gap",
81
+ "align-content",
82
+ "align-items",
83
+ "align-self",
84
+ "justify-content",
85
+ "justify-items",
86
+ "justify-self",
87
+ "order",
88
+ "float",
89
+ "clear",
90
+ "box-sizing",
91
+ "width",
92
+ "min-width",
93
+ "max-width",
94
+ "height",
95
+ "min-height",
96
+ "max-height",
97
+ "margin",
98
+ "margin-top",
99
+ "margin-right",
100
+ "margin-bottom",
101
+ "margin-left",
102
+ "padding",
103
+ "padding-top",
104
+ "padding-right",
105
+ "padding-bottom",
106
+ "padding-left",
107
+ "object-fit",
108
+ "object-position",
109
+ "overflow",
110
+ "overflow-x",
111
+ "overflow-y"
112
+ ]
113
+ },
114
+ {
115
+ "groupName": "Typography",
116
+ "emptyLineBefore": "always",
117
+ "noEmptyLineBetween": true,
118
+ "properties": [
119
+ "color",
120
+ "font",
121
+ "font-weight",
122
+ "font-size",
123
+ "font-family",
124
+ "font-style",
125
+ "font-variant",
126
+ "font-size-adjust",
127
+ "font-stretch",
128
+ "font-effect",
129
+ "font-emphasize",
130
+ "font-emphasize-position",
131
+ "font-emphasize-style",
132
+ "font-smooth",
133
+ "line-height",
134
+ "direction",
135
+ "letter-spacing",
136
+ "white-space",
137
+ "text-align",
138
+ "text-align-last",
139
+ "text-transform",
140
+ "text-decoration",
141
+ "text-emphasis",
142
+ "text-emphasis-color",
143
+ "text-emphasis-style",
144
+ "text-emphasis-position",
145
+ "text-indent",
146
+ "text-justify",
147
+ "text-outline",
148
+ "text-wrap",
149
+ "text-overflow",
150
+ "text-overflow-ellipsis",
151
+ "text-overflow-mode",
152
+ "text-orientation",
153
+ "text-shadow",
154
+ "vertical-align",
155
+ "word-wrap",
156
+ "word-break",
157
+ "word-spacing",
158
+ "overflow-wrap",
159
+ "tab-size",
160
+ "hyphens",
161
+ "unicode-bidi",
162
+ "columns",
163
+ "column-count",
164
+ "column-fill",
165
+ "column-gap",
166
+ "column-rule",
167
+ "column-rule-color",
168
+ "column-rule-style",
169
+ "column-rule-width",
170
+ "column-span",
171
+ "column-width",
172
+ "page-break-after",
173
+ "page-break-before",
174
+ "page-break-inside",
175
+ "src"
176
+ ]
177
+ },
178
+ {
179
+ "groupName": "Visual",
180
+ "emptyLineBefore": "always",
181
+ "noEmptyLineBetween": true,
182
+ "properties": [
183
+ "list-style",
184
+ "list-style-position",
185
+ "list-style-type",
186
+ "list-style-image",
187
+ "table-layout",
188
+ "empty-cells",
189
+ "caption-side",
190
+ "background",
191
+ "background-color",
192
+ "background-image",
193
+ "background-repeat",
194
+ "background-position",
195
+ "background-position-x",
196
+ "background-position-y",
197
+ "background-size",
198
+ "background-clip",
199
+ "background-origin",
200
+ "background-attachment",
201
+ "background-blend-mode",
202
+ "border",
203
+ "border-color",
204
+ "border-style",
205
+ "border-width",
206
+ "border-top",
207
+ "border-top-color",
208
+ "border-top-width",
209
+ "border-top-style",
210
+ "border-right",
211
+ "border-right-color",
212
+ "border-right-width",
213
+ "border-right-style",
214
+ "border-bottom",
215
+ "border-bottom-color",
216
+ "border-bottom-width",
217
+ "border-bottom-style",
218
+ "border-left",
219
+ "border-left-color",
220
+ "border-left-width",
221
+ "border-left-style",
222
+ "border-radius",
223
+ "border-top-left-radius",
224
+ "border-top-right-radius",
225
+ "border-bottom-right-radius",
226
+ "border-bottom-left-radius",
227
+ "border-image",
228
+ "border-image-source",
229
+ "border-image-slice",
230
+ "border-image-width",
231
+ "border-image-outset",
232
+ "border-image-repeat",
233
+ "border-collapse",
234
+ "border-spacing",
235
+ "outline",
236
+ "outline-width",
237
+ "outline-style",
238
+ "outline-color",
239
+ "outline-offset",
240
+ "box-shadow",
241
+ "box-decoration-break",
242
+ "transform",
243
+ "transform-origin",
244
+ "transform-style",
245
+ "backface-visibility",
246
+ "perspective",
247
+ "perspective-origin",
248
+ "visibility",
249
+ "cursor",
250
+ "opacity",
251
+ "filter",
252
+ "isolation",
253
+ "backdrop-filter",
254
+ "mix-blend-mode"
255
+ ]
256
+ },
257
+ {
258
+ "groupName": "Animation",
259
+ "emptyLineBefore": "always",
260
+ "noEmptyLineBetween": true,
261
+ "properties": [
262
+ "transition",
263
+ "transition-delay",
264
+ "transition-timing-function",
265
+ "transition-duration",
266
+ "transition-property",
267
+ "animation",
268
+ "animation-name",
269
+ "animation-duration",
270
+ "animation-play-state",
271
+ "animation-timing-function",
272
+ "animation-delay",
273
+ "animation-iteration-count",
274
+ "animation-direction",
275
+ "animation-fill-mode"
276
+ ]
277
+ },
278
+ {
279
+ "groupName": "Misc",
280
+ "emptyLineBefore": "always",
281
+ "noEmptyLineBetween": true,
282
+ "properties": [
283
+ "appearance",
284
+ "content",
285
+ "clip",
286
+ "clip-path",
287
+ "counter-reset",
288
+ "counter-increment",
289
+ "resize",
290
+ "user-select",
291
+ "nav-index",
292
+ "nav-up",
293
+ "nav-right",
294
+ "nav-down",
295
+ "nav-left",
296
+ "pointer-events",
297
+ "quotes",
298
+ "touch-action",
299
+ "will-change",
300
+ "zoom",
301
+ "fill",
302
+ "fill-rule",
303
+ "clip-rule",
304
+ "stroke"
305
+ ]
306
+ }
307
+ ]
308
+ }
309
+ }
@@ -0,0 +1,323 @@
1
+ {
2
+ "extends": ["stylelint-config-recommended-scss", "stylelint-rscss/config"],
3
+ "plugins": ["stylelint-prettier", "stylelint-order"],
4
+ "rules": {
5
+ "declaration-block-no-shorthand-property-overrides": true,
6
+ "length-zero-no-unit": true,
7
+ "selector-pseudo-class-no-unknown": [
8
+ true,
9
+ {
10
+ "ignorePseudoClasses": ["global", "local"]
11
+ }
12
+ ],
13
+ "shorthand-property-no-redundant-values": true,
14
+
15
+ "prettier/prettier": [true, { "severity": "warning" }],
16
+
17
+ "rscss/no-descendant-combinator": false,
18
+
19
+ "scss/at-import-no-partial-leading-underscore": null,
20
+
21
+ "order/order": [
22
+ "custom-properties",
23
+ "dollar-variables",
24
+ {
25
+ "type": "at-rule",
26
+ "name": "extend"
27
+ },
28
+ {
29
+ "type": "at-rule",
30
+ "name": "include",
31
+ "hasBlock": false
32
+ },
33
+ {
34
+ "type": "at-rule",
35
+ "name": "mixin",
36
+ "hasBlock": false
37
+ },
38
+ "declarations",
39
+ {
40
+ "type": "at-rule",
41
+ "name": "include",
42
+ "hasBlock": true
43
+ },
44
+ {
45
+ "type": "at-rule",
46
+ "name": "mixin",
47
+ "hasBlock": true
48
+ },
49
+ "rules",
50
+ "at-rules"
51
+ ],
52
+ "order/properties-order": [
53
+ {
54
+ "groupName": "Special",
55
+ "emptyLineBefore": "always",
56
+ "properties": ["composes", "@import", "@extend", "@mixin", "@at-root"]
57
+ },
58
+ {
59
+ "groupName": "Positioning",
60
+ "emptyLineBefore": "always",
61
+ "properties": ["position", "top", "right", "bottom", "left", "z-index"]
62
+ },
63
+ {
64
+ "groupName": "Box Model",
65
+ "emptyLineBefore": "always",
66
+ "noEmptyLineBetween": true,
67
+ "properties": [
68
+ "display",
69
+ "flex",
70
+ "flex-basis",
71
+ "flex-direction",
72
+ "flex-flow",
73
+ "flex-grow",
74
+ "flex-shrink",
75
+ "flex-wrap",
76
+ "grid",
77
+ "grid-area",
78
+ "grid-auto-rows",
79
+ "grid-auto-columns",
80
+ "grid-auto-flow",
81
+ "grid-gap",
82
+ "grid-row",
83
+ "grid-row-start",
84
+ "grid-row-end",
85
+ "grid-row-gap",
86
+ "grid-column",
87
+ "grid-column-start",
88
+ "grid-column-end",
89
+ "grid-column-gap",
90
+ "grid-template",
91
+ "grid-template-areas",
92
+ "grid-template-rows",
93
+ "grid-template-columns",
94
+ "gap",
95
+ "align-content",
96
+ "align-items",
97
+ "align-self",
98
+ "justify-content",
99
+ "justify-items",
100
+ "justify-self",
101
+ "order",
102
+ "float",
103
+ "clear",
104
+ "box-sizing",
105
+ "width",
106
+ "min-width",
107
+ "max-width",
108
+ "height",
109
+ "min-height",
110
+ "max-height",
111
+ "margin",
112
+ "margin-top",
113
+ "margin-right",
114
+ "margin-bottom",
115
+ "margin-left",
116
+ "padding",
117
+ "padding-top",
118
+ "padding-right",
119
+ "padding-bottom",
120
+ "padding-left",
121
+ "object-fit",
122
+ "object-position",
123
+ "overflow",
124
+ "overflow-x",
125
+ "overflow-y"
126
+ ]
127
+ },
128
+ {
129
+ "groupName": "Typography",
130
+ "emptyLineBefore": "always",
131
+ "noEmptyLineBetween": true,
132
+ "properties": [
133
+ "color",
134
+ "font",
135
+ "font-weight",
136
+ "font-size",
137
+ "font-family",
138
+ "font-style",
139
+ "font-variant",
140
+ "font-size-adjust",
141
+ "font-stretch",
142
+ "font-effect",
143
+ "font-emphasize",
144
+ "font-emphasize-position",
145
+ "font-emphasize-style",
146
+ "font-smooth",
147
+ "line-height",
148
+ "direction",
149
+ "letter-spacing",
150
+ "white-space",
151
+ "text-align",
152
+ "text-align-last",
153
+ "text-transform",
154
+ "text-decoration",
155
+ "text-emphasis",
156
+ "text-emphasis-color",
157
+ "text-emphasis-style",
158
+ "text-emphasis-position",
159
+ "text-indent",
160
+ "text-justify",
161
+ "text-outline",
162
+ "text-wrap",
163
+ "text-overflow",
164
+ "text-overflow-ellipsis",
165
+ "text-overflow-mode",
166
+ "text-orientation",
167
+ "text-shadow",
168
+ "vertical-align",
169
+ "word-wrap",
170
+ "word-break",
171
+ "word-spacing",
172
+ "overflow-wrap",
173
+ "tab-size",
174
+ "hyphens",
175
+ "unicode-bidi",
176
+ "columns",
177
+ "column-count",
178
+ "column-fill",
179
+ "column-gap",
180
+ "column-rule",
181
+ "column-rule-color",
182
+ "column-rule-style",
183
+ "column-rule-width",
184
+ "column-span",
185
+ "column-width",
186
+ "page-break-after",
187
+ "page-break-before",
188
+ "page-break-inside",
189
+ "src"
190
+ ]
191
+ },
192
+ {
193
+ "groupName": "Visual",
194
+ "emptyLineBefore": "always",
195
+ "noEmptyLineBetween": true,
196
+ "properties": [
197
+ "list-style",
198
+ "list-style-position",
199
+ "list-style-type",
200
+ "list-style-image",
201
+ "table-layout",
202
+ "empty-cells",
203
+ "caption-side",
204
+ "background",
205
+ "background-color",
206
+ "background-image",
207
+ "background-repeat",
208
+ "background-position",
209
+ "background-position-x",
210
+ "background-position-y",
211
+ "background-size",
212
+ "background-clip",
213
+ "background-origin",
214
+ "background-attachment",
215
+ "background-blend-mode",
216
+ "border",
217
+ "border-color",
218
+ "border-style",
219
+ "border-width",
220
+ "border-top",
221
+ "border-top-color",
222
+ "border-top-width",
223
+ "border-top-style",
224
+ "border-right",
225
+ "border-right-color",
226
+ "border-right-width",
227
+ "border-right-style",
228
+ "border-bottom",
229
+ "border-bottom-color",
230
+ "border-bottom-width",
231
+ "border-bottom-style",
232
+ "border-left",
233
+ "border-left-color",
234
+ "border-left-width",
235
+ "border-left-style",
236
+ "border-radius",
237
+ "border-top-left-radius",
238
+ "border-top-right-radius",
239
+ "border-bottom-right-radius",
240
+ "border-bottom-left-radius",
241
+ "border-image",
242
+ "border-image-source",
243
+ "border-image-slice",
244
+ "border-image-width",
245
+ "border-image-outset",
246
+ "border-image-repeat",
247
+ "border-collapse",
248
+ "border-spacing",
249
+ "outline",
250
+ "outline-width",
251
+ "outline-style",
252
+ "outline-color",
253
+ "outline-offset",
254
+ "box-shadow",
255
+ "box-decoration-break",
256
+ "transform",
257
+ "transform-origin",
258
+ "transform-style",
259
+ "backface-visibility",
260
+ "perspective",
261
+ "perspective-origin",
262
+ "visibility",
263
+ "cursor",
264
+ "opacity",
265
+ "filter",
266
+ "isolation",
267
+ "backdrop-filter",
268
+ "mix-blend-mode"
269
+ ]
270
+ },
271
+ {
272
+ "groupName": "Animation",
273
+ "emptyLineBefore": "always",
274
+ "noEmptyLineBetween": true,
275
+ "properties": [
276
+ "transition",
277
+ "transition-delay",
278
+ "transition-timing-function",
279
+ "transition-duration",
280
+ "transition-property",
281
+ "animation",
282
+ "animation-name",
283
+ "animation-duration",
284
+ "animation-play-state",
285
+ "animation-timing-function",
286
+ "animation-delay",
287
+ "animation-iteration-count",
288
+ "animation-direction",
289
+ "animation-fill-mode"
290
+ ]
291
+ },
292
+ {
293
+ "groupName": "Misc",
294
+ "emptyLineBefore": "always",
295
+ "noEmptyLineBetween": true,
296
+ "properties": [
297
+ "appearance",
298
+ "content",
299
+ "clip",
300
+ "clip-path",
301
+ "counter-reset",
302
+ "counter-increment",
303
+ "resize",
304
+ "user-select",
305
+ "nav-index",
306
+ "nav-up",
307
+ "nav-right",
308
+ "nav-down",
309
+ "nav-left",
310
+ "pointer-events",
311
+ "quotes",
312
+ "touch-action",
313
+ "will-change",
314
+ "zoom",
315
+ "fill",
316
+ "fill-rule",
317
+ "clip-rule",
318
+ "stroke"
319
+ ]
320
+ }
321
+ ]
322
+ }
323
+ }