@enigmatry/stylelint-config 19.0.1-preview.1 → 20.0.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +164 -49
  3. package/package.json +4 -6
package/README.md CHANGED
@@ -25,7 +25,7 @@ Just set your `stylelint` config to:
25
25
 
26
26
  Simply add a `"rules"` key to your config, then add your overrides and additions there.
27
27
 
28
- For example, to change the `at-rule-no-unknown` rule to use its `ignoreAtRules` option, change the `indentation` to tabs, turn off the `number-leading-zero` rule,and add the `unit-allowed-list` rule:
28
+ For example, to change the `at-rule-no-unknown` rule to use its `ignoreAtRules` option, change the `indentation` to tabs, turn off the `number-leading-zero` rule, and add the `unit-allowed-list` rule:
29
29
 
30
30
  ```json
31
31
  {
package/index.js CHANGED
@@ -5,12 +5,11 @@ module.exports = {
5
5
  extends: "stylelint-config-property-sort-order-smacss",
6
6
  plugins: [
7
7
  "@stylistic/stylelint-plugin",
8
- "stylelint-use-nesting",
9
8
  "stylelint-declaration-block-no-ignored-properties",
10
9
  "stylelint-file-max-lines",
11
- "stylelint-scss",
12
10
  "stylelint-group-selectors",
13
- // "stylelint-selector-no-empty", => uncomment this line once this library is again compatible with stylelint v16+
11
+ "stylelint-use-nesting",
12
+ "stylelint-scss",
14
13
  ],
15
14
  rules: {
16
15
  "@stylistic/at-rule-name-case": "lower",
@@ -43,7 +42,6 @@ module.exports = {
43
42
  "@stylistic/function-comma-space-after": "always-single-line",
44
43
  "@stylistic/function-comma-space-before": "never",
45
44
  "@stylistic/function-max-empty-lines": 0,
46
- "@stylistic/named-grid-areas-alignment": "always",
47
45
  "@stylistic/function-parentheses-newline-inside": "never-multi-line",
48
46
  "@stylistic/function-parentheses-space-inside": "never",
49
47
  "@stylistic/function-whitespace-after": "always",
@@ -52,7 +50,9 @@ module.exports = {
52
50
  "@stylistic/max-empty-lines": 1,
53
51
  "@stylistic/max-line-length": [
54
52
  135,
55
- { "ignore": ["comments"] }
53
+ {
54
+ ignore: ["comments"]
55
+ }
56
56
  ],
57
57
  "@stylistic/media-feature-colon-space-after": "always",
58
58
  "@stylistic/media-feature-colon-space-before": "never",
@@ -66,9 +66,12 @@ module.exports = {
66
66
  "@stylistic/media-query-list-comma-space-before": "never",
67
67
  "@stylistic/named-grid-areas-alignment": true,
68
68
  "@stylistic/no-empty-first-line": true,
69
- "@stylistic/no-eol-whitespace": [true, {
70
- ignore: ["empty-lines"]
71
- }],
69
+ "@stylistic/no-eol-whitespace": [
70
+ true,
71
+ {
72
+ ignore: ["empty-lines"]
73
+ }
74
+ ],
72
75
  "@stylistic/no-extra-semicolons": true,
73
76
  "@stylistic/no-missing-end-of-source-newline": null,
74
77
  "@stylistic/number-leading-zero": "never",
@@ -80,177 +83,289 @@ module.exports = {
80
83
  "@stylistic/selector-combinator-space-after": "always",
81
84
  "@stylistic/selector-combinator-space-before": "always",
82
85
  "@stylistic/selector-descendant-combinator-no-non-space": true,
83
- "@stylistic/selector-list-comma-space-after": "always",
84
- "@stylistic/selector-list-comma-space-before": "never",
85
86
  "@stylistic/selector-list-comma-newline-after": null,
86
87
  "@stylistic/selector-list-comma-newline-before": null,
88
+ "@stylistic/selector-list-comma-space-after": "always",
89
+ "@stylistic/selector-list-comma-space-before": "never",
87
90
  "@stylistic/selector-max-empty-lines": 0,
88
91
  "@stylistic/selector-pseudo-class-case": "lower",
89
92
  "@stylistic/selector-pseudo-class-parentheses-space-inside": "never",
90
93
  "@stylistic/selector-pseudo-element-case": "lower",
91
94
  "@stylistic/string-quotes": "single",
95
+ "@stylistic/unicode-bom": null,
92
96
  "@stylistic/unit-case": "lower",
93
97
  "@stylistic/value-list-comma-newline-after": "never-multi-line",
94
98
  "@stylistic/value-list-comma-newline-before": "never-multi-line",
95
99
  "@stylistic/value-list-comma-space-after": "always-single-line",
96
100
  "@stylistic/value-list-comma-space-before": "never",
97
101
  "@stylistic/value-list-max-empty-lines": 0,
98
- "@stylistic/unicode-bom": null,
99
102
  "alpha-value-notation": "number",
100
103
  "annotation-no-unknown": [
101
104
  true,
102
105
  {
103
- "ignoreAnnotations": [
104
- "default"
105
- ]
106
+ ignoreAnnotations: ["default"]
107
+ }
108
+ ],
109
+ "at-rule-allowed-list": ["use", "for", "if", "else", "include", "extend", "return", "error", "each", "mixin", "function", "keyframes", "font-face", "forward", "at-root", "while"],
110
+ "at-rule-descriptor-no-unknown": null,
111
+ "at-rule-descriptor-value-no-unknown": null,
112
+ "at-rule-disallowed-list": null,
113
+ "at-rule-empty-line-before": [
114
+ "always",
115
+ {
116
+ except: ["first-nested"],
117
+ ignore: ["after-comment"],
118
+ ignoreAtRules: ["use", "include", "else"]
106
119
  }
107
120
  ],
108
- "at-rule-allowed-list": ["use", "for", "if", "else", "include", "extend", "return", "error", "each", "mixin", "function", "keyframes", "font-face", "forward", "at-root", "while"],
121
+ "at-rule-no-deprecated": null,
109
122
  "at-rule-no-unknown": null,
123
+ "at-rule-no-vendor-prefix": true,
124
+ "at-rule-prelude-no-invalid": null,
125
+ "at-rule-property-required-list": null,
110
126
  "block-no-empty": true,
111
- "comment-no-empty": true,
112
- "comment-whitespace-inside": "always",
113
127
  "color-function-notation": "modern",
128
+ "color-hex-alpha": null,
114
129
  "color-hex-length": "short",
115
130
  "color-named": "never",
131
+ "color-no-hex": null,
116
132
  "color-no-invalid-hex": true,
133
+ "comment-empty-line-before": null,
134
+ "comment-no-empty": true,
135
+ "comment-pattern": null,
136
+ "comment-whitespace-inside": "always",
137
+ "comment-word-disallowed-list": null,
138
+ "custom-media-pattern": null,
117
139
  "custom-property-empty-line-before": "always",
118
- "declaration-empty-line-before": "never",
140
+ "custom-property-no-missing-var-function": null,
141
+ "custom-property-pattern": null,
119
142
  "declaration-block-no-duplicate-custom-properties": true,
120
143
  "declaration-block-no-duplicate-properties": true,
121
- "declaration-block-no-shorthand-property-overrides": true,
122
144
  "declaration-block-no-redundant-longhand-properties": [
123
- true, { "ignoreShorthands": [] }
145
+ true,
146
+ {
147
+ ignoreShorthands: []
148
+ }
124
149
  ],
150
+ "declaration-block-no-shorthand-property-overrides": true,
125
151
  "declaration-block-single-line-max-declarations": 1,
152
+ "declaration-empty-line-before": "never",
126
153
  "declaration-no-important": true,
127
154
  "declaration-property-max-values": {},
155
+ "declaration-property-unit-allowed-list": null,
156
+ "declaration-property-unit-disallowed-list": null,
157
+ "declaration-property-value-allowed-list": null,
158
+ "declaration-property-value-disallowed-list": null,
159
+ "declaration-property-value-keyword-no-deprecated": true,
128
160
  "font-family-name-quotes": "always-unless-keyword",
129
161
  "font-family-no-duplicate-names": true,
130
162
  "font-family-no-missing-generic-family-keyword": true,
131
163
  "font-weight-notation": "numeric",
164
+ "function-allowed-list": null,
132
165
  "function-calc-no-unspaced-operator": true,
166
+ "function-disallowed-list": null,
133
167
  "function-linear-gradient-no-nonstandard-direction": true,
134
168
  "function-name-case": "lower",
135
169
  "function-no-unknown": null,
136
170
  "function-url-no-scheme-relative": true,
137
171
  "function-url-quotes": "always",
172
+ "function-url-scheme-allowed-list": null,
173
+ "function-url-scheme-disallowed-list": null,
138
174
  "hue-degree-notation": "number",
139
175
  "import-notation": "string",
140
176
  "keyframe-block-no-duplicate-selectors": true,
141
177
  "keyframe-declaration-no-important": true,
178
+ "keyframe-selector-notation": "percentage-unless-within-keyword-only-block",
179
+ "keyframes-name-pattern": null,
142
180
  "length-zero-no-unit": true,
143
181
  "lightness-notation": "number",
144
- "max-nesting-depth": 3,
182
+ "max-nesting-depth": [
183
+ 3, {
184
+ "ignoreAtRules": ["include"]
185
+ }
186
+ ],
145
187
  "media-feature-name-allowed-list": ["min-width", "width", "-ms-high-contrast"],
188
+ "media-feature-name-disallowed-list": null,
146
189
  "media-feature-name-no-unknown": true,
190
+ "media-feature-name-no-vendor-prefix": null,
191
+ "media-feature-name-unit-allowed-list": null,
192
+ "media-feature-name-value-allowed-list": null,
193
+ "media-feature-name-value-no-unknown": null,
147
194
  "media-feature-range-notation": "context",
195
+ "media-query-no-invalid": true,
196
+ "named-grid-areas-no-invalid": true,
148
197
  "no-descending-specificity": true,
149
198
  "no-duplicate-at-import-rules": true,
150
199
  "no-duplicate-selectors": true,
151
- "no-unknown-custom-media": true,
200
+ "no-empty-source": null,
152
201
  "no-invalid-double-slash-comments": true,
202
+ "no-invalid-position-at-import-rule": true,
203
+ "no-irregular-whitespace": null,
153
204
  "no-unknown-animations": true,
205
+ "no-unknown-custom-media": true,
154
206
  "no-unknown-custom-properties": null,
155
207
  "number-max-precision": 2,
208
+ "property-allowed-list": null,
209
+ "property-disallowed-list": null,
156
210
  "property-no-vendor-prefix": true,
157
211
  "rule-empty-line-before": [
158
212
  "always",
159
- { "except": ["after-single-line-comment", "first-nested"] }
213
+ {
214
+ except: ["after-single-line-comment", "first-nested"]
215
+ }
160
216
  ],
217
+ "rule-selector-property-disallowed-list": null,
161
218
  "selector-anb-no-unmatchable": true,
219
+ "selector-attribute-name-disallowed-list": null,
220
+ "selector-attribute-operator-allowed-list": null,
221
+ "selector-attribute-operator-disallowed-list": null,
162
222
  "selector-attribute-quotes": "always",
223
+ "selector-class-pattern": null,
224
+ "selector-combinator-allowed-list": null,
225
+ "selector-combinator-disallowed-list": null,
163
226
  "selector-disallowed-list": null,
227
+ "selector-id-pattern": null,
164
228
  "selector-max-attribute": 0,
229
+ "selector-max-class": 5,
165
230
  "selector-max-combinators": 2,
166
- "selector-max-compound-selectors": [3,
167
- { ignoreSelectors: ["::ng-deep"] }
231
+ "selector-max-compound-selectors": [
232
+ 3,
233
+ {
234
+ ignoreSelectors: ["::ng-deep"]
235
+ }
168
236
  ],
169
237
  "selector-max-id": 0,
170
238
  "selector-max-pseudo-class": 1,
239
+ "selector-max-specificity": "0,5,0",
171
240
  "selector-max-type": 2,
172
241
  "selector-max-universal": 0,
242
+ "selector-nested-pattern": null,
173
243
  "selector-no-qualifying-type": true,
174
244
  "selector-no-vendor-prefix": true,
245
+ "selector-not-notation": null,
246
+ "selector-pseudo-class-allowed-list": null,
247
+ "selector-pseudo-class-disallowed-list": null,
175
248
  "selector-pseudo-class-no-unknown": true,
249
+ "selector-pseudo-element-allowed-list": null,
176
250
  "selector-pseudo-element-colon-notation": "double",
251
+ "selector-pseudo-element-disallowed-list": null,
177
252
  "selector-pseudo-element-no-unknown": [
178
253
  true,
179
- { "ignorePseudoElements": ["host", "ng-deep"] }
254
+ {
255
+ ignorePseudoElements: ["host", "ng-deep"]
256
+ }
180
257
  ],
181
258
  "selector-type-case": "lower",
182
259
  "selector-type-no-unknown": true,
183
260
  "shorthand-property-no-redundant-values": true,
184
261
  "string-no-newline": true,
262
+ "syntax-string-no-invalid": true,
185
263
  "time-min-milliseconds": 100,
186
264
  "unit-allowed-list": ["px", "%", "em", "rem", "vw", "deg", "ms", "s"],
265
+ "unit-disallowed-list": null,
187
266
  "unit-no-unknown": true,
188
267
  "value-keyword-case": "lower",
189
268
  "value-no-vendor-prefix": true,
269
+ "scss/at-each-key-value-single-line": null,
190
270
  "scss/at-else-closing-brace-newline-after": "always-last-in-chain",
191
271
  "scss/at-else-closing-brace-space-after": "never-intermediate",
192
272
  "scss/at-else-empty-line-before": "never",
193
273
  "scss/at-else-if-parentheses-space-before": "never",
194
274
  "scss/at-extend-no-missing-placeholder": true,
195
- "scss/at-mixin-no-risky-nesting-selector": true,
196
- "scss/at-function-parentheses-space-before": "never",
197
275
  "scss/at-function-named-arguments": [
198
276
  "never",
199
- { "ignoreFunctions": ["color.adjust"] }
277
+ {
278
+ ignoreFunctions: ["color.adjust"]
279
+ }
200
280
  ],
281
+ "scss/at-function-parentheses-space-before": "never",
282
+ "scss/at-function-pattern": null,
201
283
  "scss/at-if-closing-brace-newline-after": null,
202
284
  "scss/at-if-closing-brace-space-after": null,
203
285
  "scss/at-if-no-null": true,
286
+ "scss/at-import-partial-extension-allowed-list": [
287
+ "scss"
288
+ ],
289
+ "scss/at-import-partial-extension-blacklist": null,
290
+ "scss/at-import-partial-extension-disallowed-list": [
291
+ "sass"
292
+ ],
293
+ "scss/at-import-partial-extension-whitelist": null,
204
294
  "scss/at-mixin-argumentless-call-parentheses": "always",
295
+ "scss/at-mixin-named-arguments": null,
296
+ "scss/at-mixin-no-risky-nesting-selector": true,
205
297
  "scss/at-mixin-parentheses-space-before": "never",
298
+ "scss/at-mixin-pattern": null,
206
299
  "scss/at-root-no-redundant": true,
207
300
  "scss/at-rule-no-unknown": [
208
301
  true,
209
- { "ignoreAtRules": ["use"] }
302
+ {
303
+ ignoreAtRules: ["use"]
304
+ }
210
305
  ],
211
306
  "scss/at-use-no-redundant-alias": true,
307
+ "scss/at-use-no-unnamespaced": true,
212
308
  "scss/block-no-redundant-nesting": true,
309
+ "scss/comment-no-empty": true,
310
+ "scss/comment-no-loud": null,
311
+ "scss/declaration-nested-properties": null,
312
+ "scss/declaration-nested-properties-no-divided-groups": null,
313
+ "scss/declaration-property-value-no-unknown": null,
314
+ "scss/dimension-no-non-numeric-values": null,
315
+ "scss/dollar-variable-colon-newline-after": null,
213
316
  "scss/dollar-variable-colon-space-after": "always",
214
317
  "scss/dollar-variable-colon-space-before": "never",
318
+ "scss/dollar-variable-default": null,
319
+ "scss/dollar-variable-empty-line-after": null,
320
+ "scss/dollar-variable-empty-line-before": null,
321
+ "scss/dollar-variable-first-in-block": null,
322
+ "scss/dollar-variable-no-missing-interpolation": null,
323
+ "scss/dollar-variable-no-namespaced-assignment": null,
324
+ "scss/dollar-variable-pattern": null,
325
+ "scss/double-slash-comment-empty-line-before": null,
326
+ "scss/double-slash-comment-inline": null,
215
327
  "scss/double-slash-comment-whitespace-inside": "always",
216
- "scss/comment-no-empty": true,
328
+ "scss/function-calculation-no-interpolation": null,
329
+ "scss/function-color-channel": null,
330
+ "scss/function-color-relative": null,
331
+ "scss/function-disallowed-list": null,
217
332
  "scss/function-no-unknown": [
218
333
  true,
219
- { "ignoreFunctions": ["/^-/", "/^mat\\./", "/^theming\\.mat/"] }
334
+ {
335
+ ignoreFunctions: ["/^-/", "/^mat\\./", "/^theming\\.mat/"]
336
+ }
220
337
  ],
221
338
  "scss/function-quote-no-quoted-strings-inside": true,
222
- "scss/function-calculation-no-interpolation": null,
223
339
  "scss/function-unquote-no-unquoted-strings-inside": true,
224
340
  "scss/load-no-partial-leading-underscore": true,
225
- "scss/operator-no-newline-after": true,
226
- "scss/operator-no-newline-before": true,
227
- "scss/operator-no-unspaced": true,
228
- "scss/partial-no-import": true,
229
- "scss/selector-no-redundant-nesting-selector": true,
230
- "scss/selector-no-union-class-name": true,
231
- "scss/at-import-partial-extension-allowed-list": ["scss"],
232
- "scss/at-import-partial-extension-disallowed-list": ["sass"],
233
341
  "scss/load-partial-extension": "never",
234
- "scss/declaration-property-value-no-unknown": null,
235
- "scss/property-no-unknown": true,
342
+ "scss/map-keys-quotes": null,
343
+ "scss/media-feature-value-dollar-variable": null,
344
+ "scss/no-dollar-variables": null,
236
345
  "scss/no-duplicate-dollar-variables": [
237
346
  true,
238
347
  {
239
- "ignoreInsideAtRules": [
240
- "each",
241
- "while"
242
- ]
348
+ ignoreInsideAtRules: ["each","while"]
243
349
  }
244
350
  ],
245
351
  "scss/no-duplicate-mixins": true,
246
352
  "scss/no-global-function-names": true,
247
353
  "scss/no-unused-private-members": null,
354
+ "scss/operator-no-newline-after": true,
355
+ "scss/operator-no-newline-before": true,
356
+ "scss/operator-no-unspaced": true,
357
+ "scss/partial-no-import": true,
358
+ "scss/percent-placeholder-pattern": null,
359
+ "scss/property-no-unknown": true,
360
+ "scss/selector-nest-combinators": null,
361
+ "scss/selector-no-redundant-nesting-selector": true,
362
+ "scss/selector-no-union-class-name": true,
248
363
  "plugin/declaration-block-no-ignored-properties": true,
364
+ "plugin/file-max-lines": 135,
249
365
  "plugin/stylelint-group-selectors": true,
250
366
  //"plugin/stylelint-selector-no-empty": true, => uncomment this line once this library is again compatible with stylelint v15+
251
367
  // "csstools/use-nesting": ["always", => uncomment this line once this library is again compatible with stylelint v16+
252
368
  // { "syntax": "scss" }
253
369
  // ],
254
- "plugin/file-max-lines": 135
255
370
  }
256
- };
371
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enigmatry/stylelint-config",
3
- "version": "19.0.1-preview.1",
3
+ "version": "20.0.0",
4
4
  "author": "Enigmatry",
5
5
  "description": "Stylelint shareable config for the Enigmatry style.",
6
6
  "homepage": "https://github.com/enigmatry/entry-angular-building-blocks/tree/master/libs/stylelint-config#readme",
@@ -14,17 +14,15 @@
14
14
  ],
15
15
  "dependencies": {
16
16
  "postcss-scss": "^4.0.9",
17
+ "stylelint": "^16.16.0",
17
18
  "stylelint-config-property-sort-order-smacss": "^10.0.0",
18
- "@stylistic/stylelint-plugin": "^3.1.1",
19
+ "@stylistic/stylelint-plugin": "^3.1.2",
19
20
  "stylelint-use-nesting": "^6.0.0",
20
21
  "stylelint-declaration-block-no-ignored-properties": "^2.8.0",
21
22
  "stylelint-file-max-lines": "^1.0.0",
22
- "stylelint-scss": "^6.10.0",
23
+ "stylelint-scss": "^6.11.1",
23
24
  "stylelint-group-selectors": "^1.0.10"
24
25
  },
25
- "peerDependencies": {
26
- "stylelint": "^16.10.0"
27
- },
28
26
  "deprecatedDependencies": {
29
27
  "stylelint-selector-no-empty": "1.0.9 is out of support. Add it back to the list if support for Stylelint v16+ is added"
30
28
  },