stylelint-config-ccb 1.8.3 → 1.8.6

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 -0
  2. package/index.js +270 -80
  3. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1 @@
1
+ An opinionated stylelint-config which uses both stylelint-config-standard and prettier. In addition to many more stricter rules to reduce potential issues as much as possible.
package/index.js CHANGED
@@ -9,7 +9,7 @@ module.exports = {
9
9
  'stylelint-prettier'
10
10
  ],
11
11
  rules: {
12
- /* stylelint-config-ccb - overwrite on top of stylelint-config-standard */
12
+ /* stylelint-config-standard overwrites */
13
13
  'alpha-value-notation': 'number',
14
14
  'color-hex-length': 'long',
15
15
  'declaration-block-no-redundant-longhand-properties': null,
@@ -109,9 +109,266 @@ module.exports = {
109
109
  'function-disallowed-list': ['gray', 'color-mod', 'color', 'rgba', 'hsla'],
110
110
  'declaration-no-important': true,
111
111
  'property-disallowed-list': [
112
- '-webkit-font-smoothing', '-moz-osx-font-smoothing',
113
- 'font-smoothing', 'osx-font-smoothing', 'font-smooth',
114
- 'float'
112
+ /* microsoft-only properties */
113
+ '-ms-accelerator',
114
+ '-ms-block-progression',
115
+ '-ms-content-zoom-chaining',
116
+ '-ms-content-zooming',
117
+ '-ms-content-zoom-limit',
118
+ '-ms-content-zoom-limit-max',
119
+ '-ms-content-zoom-limit-min',
120
+ '-ms-content-zoom-snap',
121
+ '-ms-content-zoom-snap-points',
122
+ '-ms-content-zoom-snap-type',
123
+ '-ms-filter',
124
+ '-ms-flow-from',
125
+ '-ms-flow-into',
126
+ '-ms-high-contrast-adjust',
127
+ '-ms-hyphenate-limit-chars',
128
+ '-ms-hyphenate-limit-lines',
129
+ '-ms-hyphenate-limit-zone',
130
+ '-ms-ime-align',
131
+ '-ms-overflow-style',
132
+ '-ms-scrollbar-3dlight-color',
133
+ '-ms-scrollbar-arrow-color',
134
+ '-ms-scrollbar-base-color',
135
+ '-ms-scrollbar-darkshadow-color',
136
+ '-ms-scrollbar-face-color',
137
+ '-ms-scrollbar-highlight-color',
138
+ '-ms-scrollbar-shadow-color',
139
+ '-ms-scrollbar-track-color',
140
+ '-ms-scroll-chaining',
141
+ '-ms-scroll-limit',
142
+ '-ms-scroll-limit-x-max',
143
+ '-ms-scroll-limit-x-min',
144
+ '-ms-scroll-limit-y-max',
145
+ '-ms-scroll-limit-y-min',
146
+ '-ms-scroll-rails',
147
+ '-ms-scroll-snap-points-x',
148
+ '-ms-scroll-snap-points-y',
149
+ '-ms-scroll-snap-x',
150
+ '-ms-scroll-snap-y',
151
+ '-ms-scroll-translation',
152
+ '-ms-text-autospace',
153
+ '-ms-touch-select',
154
+ '-ms-wrap-flow',
155
+ '-ms-wrap-margin',
156
+ '-ms-wrap-through',
157
+ 'zoom',
158
+
159
+ /* mozilla / firefox only properties */
160
+
161
+ '-moz-binding',
162
+ '-moz-border-bottom-colors',
163
+ '-moz-border-left-colors',
164
+ '-moz-border-right-colors',
165
+ '-moz-border-top-colors',
166
+ '-moz-box-align',
167
+ '-moz-box-direction',
168
+ '-moz-box-flex',
169
+ '-moz-box-ordinal-group',
170
+ '-moz-box-orient',
171
+ '-moz-box-pack',
172
+ '-moz-context-properties',
173
+ '-moz-float-edge',
174
+ '-moz-force-broken-image-icon',
175
+ '-moz-image-region',
176
+ '-moz-orient',
177
+ '-moz-osx-font-smoothing',
178
+ '-moz-outline-radius',
179
+ '-moz-outline-radius-bottomleft',
180
+ '-moz-outline-radius-bottomright',
181
+ '-moz-outline-radius-topleft',
182
+ '-moz-outline-radius-topright',
183
+ '-moz-stack-sizing',
184
+ '-moz-user-focus',
185
+ '-moz-user-input',
186
+ '-moz-user-modify',
187
+ '-moz-window-dragging',
188
+ '-moz-window-shadow',
189
+ 'overflow-clip-box',
190
+ 'overflow-clip-box-block',
191
+ 'overflow-clip-box-inline',
192
+
193
+ /* webkit-only - WebKit supports without -webkit prefix, but not standard or on standards track */
194
+ '-webkit-mask-repeat-x',
195
+ '-webkit-mask-repeat-y',
196
+
197
+ /* webkit-only - New syntax has been standardized. Property links to the new syntax. Old prefixed syntax is still supported in some browsers. */
198
+ '-webkit-border-after',
199
+ '-webkit-border-after-color',
200
+ '-webkit-border-after-style',
201
+ '-webkit-border-after-width',
202
+ '-webkit-border-before',
203
+ '-webkit-border-before-color',
204
+ '-webkit-border-before-style',
205
+ '-webkit-border-before-width',
206
+ '-webkit-border-end',
207
+ '-webkit-border-end-color',
208
+ '-webkit-border-end-style',
209
+ '-webkit-border-end-width',
210
+ '-webkit-border-start',
211
+ '-webkit-border-start-color',
212
+ '-webkit-border-start-style',
213
+ '-webkit-border-start-width',
214
+ '-webkit-box-align',
215
+ '-webkit-box-direction',
216
+ '-webkit-box-flex',
217
+ '-webkit-box-flex-group',
218
+ '-webkit-box-lines',
219
+ '-webkit-box-ordinal-group',
220
+ '-webkit-box-orient',
221
+ '-webkit-box-pack',
222
+ '-webkit-box-reflect',
223
+ '-webkit-margin-end',
224
+ '-webkit-margin-start',
225
+ '-webkit-padding-after',
226
+ '-webkit-padding-before',
227
+ '-webkit-padding-end',
228
+ '-webkit-padding-start',
229
+
230
+ /* other webkit-only */
231
+ '-webkit-animation-trigger',
232
+ '-webkit-app-region',
233
+ '-webkit-aspect-ratio',
234
+ '-webkit-backdrop-filter',
235
+ '-webkit-border-fit',
236
+ '-webkit-border-horizontal-spacing',
237
+ '-webkit-border-vertical-spacing',
238
+ '-webkit-column-axis',
239
+ '-webkit-column-break-after',
240
+ '-webkit-column-break-before',
241
+ '-webkit-column-break-inside',
242
+ '-webkit-column-progression',
243
+ '-webkit-cursor-visibility',
244
+ '-webkit-dashboard-region',
245
+ '-webkit-font-size-delta',
246
+ '-webkit-font-smoothing',
247
+ '-webkit-highlight',
248
+ '-webkit-hyphenate-character',
249
+ '-webkit-hyphenate-limit-after',
250
+ '-webkit-hyphenate-limit-before',
251
+ '-webkit-hyphenate-limit-lines',
252
+ '-webkit-initial-letter',
253
+ '-webkit-line-align',
254
+ '-webkit-line-box-contain',
255
+ '-webkit-line-clamp',
256
+ '-webkit-line-grid',
257
+ '-webkit-line-snap',
258
+ '-webkit-locale',
259
+ '-webkit-logical-height',
260
+ '-webkit-logical-width',
261
+ '-webkit-margin-after',
262
+ '-webkit-margin-before',
263
+ '-webkit-marquee',
264
+ '-webkit-marquee-direction',
265
+ '-webkit-marquee-increment',
266
+ '-webkit-marquee-repetition',
267
+ '-webkit-marquee-speed',
268
+ '-webkit-marquee-style',
269
+ '-webkit-mask-box-image',
270
+ '-webkit-mask-box-image-outset',
271
+ '-webkit-mask-box-image-repeat',
272
+ '-webkit-mask-box-image-slice',
273
+ '-webkit-mask-box-image-source',
274
+ '-webkit-mask-box-image-width',
275
+ '-webkit-mask-position-x',
276
+ '-webkit-mask-position-y',
277
+ '-webkit-mask-source-type',
278
+ '-webkit-max-logical-height',
279
+ '-webkit-max-logical-width',
280
+ '-webkit-min-logical-height',
281
+ '-webkit-min-logical-width',
282
+ '-webkit-nbsp-mode',
283
+ '-webkit-perspective-origin-x',
284
+ '-webkit-perspective-origin-y',
285
+ '-webkit-rtl-ordering',
286
+ '-webkit-svg-shadow',
287
+ '-webkit-tap-highlight-color',
288
+ '-webkit-text-decoration-skip',
289
+ '-webkit-text-decorations-in-effect',
290
+ '-webkit-text-fill-color',
291
+ '-webkit-text-security',
292
+ '-webkit-text-stroke',
293
+ '-webkit-text-stroke-color',
294
+ '-webkit-text-stroke-width',
295
+ '-webkit-text-zoom',
296
+ '-webkit-transform-origin-x',
297
+ '-webkit-transform-origin-y',
298
+ '-webkit-transform-origin-z',
299
+ '-webkit-user-drag',
300
+ '-webkit-user-modify',
301
+
302
+ /* deprecated safari webkit properties, see:
303
+ https://webkit.org/blog/12445/new-webkit-features-in-safari-15-4/ */
304
+ '-webkit-alt*',
305
+ '-webkit-background-composite',
306
+ '-webkit-border-fit',
307
+ '-webkit-color-correction',
308
+ '-webkit-flow-from',
309
+ '-webkit-flow-into',
310
+ '-webkit-grid-columns',
311
+ '-webkit-grid-rows',
312
+ '-webkit-hyphenate-charset',
313
+ '-webkit-image-set',
314
+ '-webkit-mask-attachment',
315
+ '-webkit-match-nearest-mail-blockquote-color',
316
+ '-webkit-margin-collapse',
317
+ '-webkit-margin-after-collapse',
318
+ '-webkit-margin-before-collapse',
319
+ '-webkit-margin-bottom-collapse',
320
+ '-webkit-margin-top-collapse',
321
+ '-webkit-overflow-scrolling',
322
+ '-webkit-region-break-after',
323
+ '-webkit-region-break-before',
324
+ '-webkit-region-break-inside',
325
+ '-webkit-region-fragment',
326
+ '-webkit-shape-inside',
327
+ '-webkit-touch-callout',
328
+ 'background-origin-x',
329
+ 'background-origin-y',
330
+
331
+ /* webkit prefixes */
332
+ '-webkit-appearance',
333
+ '-webkit-mask',
334
+ '-webkit-mask-image',
335
+ '-webkit-mask-size',
336
+ '-webkit-mask-repeat-x',
337
+ '-webkit-mask-repeat-y',
338
+ '-webkit-mask-origin',
339
+ '-webkit-backface-visibility',
340
+ '-webkit-text-combine-upright',
341
+ '-webkit-print-color-adjust',
342
+
343
+ /* legacy */
344
+ 'text-decoration-skip',
345
+
346
+ '-moz-outline-radius',
347
+ '-moz-outline-radius-bottomleft',
348
+ '-moz-outline-radius-bottomright',
349
+ '-moz-outline-radius-topleft',
350
+ '-moz-outline-radius-topright',
351
+
352
+ '-webkit-font-smoothing',
353
+ '-moz-osx-font-smoothing',
354
+ 'font-smoothing',
355
+ 'osx-font-smoothing',
356
+
357
+ 'box-orient',
358
+
359
+ 'zoom',
360
+
361
+ 'word-break',
362
+ 'page-break-inside',
363
+ 'clip',
364
+
365
+ /* compatibility */
366
+ '-webkit-text-stroke', // use -webkit-text-stroke-width or -webkit-text-stroke-color
367
+
368
+ /* opinionated */
369
+ 'float',
370
+
371
+ 'font-smooth'
115
372
  ],
116
373
  'time-min-milliseconds': 75,
117
374
  'selector-no-qualifying-type': true,
@@ -141,11 +398,9 @@ module.exports = {
141
398
  'color-named': 'never',
142
399
  'no-unknown-animations': true,
143
400
 
144
- /* stylelint-config-ccb - prettier overlap, no conflict */
401
+ /* prettier-overlap */
145
402
  linebreaks: 'unix',
146
403
  'unicode-bom': 'never',
147
-
148
- /* stylelint-config-ccb - prettier overlap, check todo */
149
404
  'at-rule-semicolon-space-before': 'never',
150
405
  'block-opening-brace-newline-before': 'never-single-line',
151
406
  'declaration-block-semicolon-newline-before': 'never-multi-line',
@@ -155,86 +410,21 @@ module.exports = {
155
410
  'selector-list-comma-space-after': 'always-single-line',
156
411
  'value-list-comma-newline-before': 'never-multi-line',
157
412
 
158
- /* rules not included - prettier overlap, check todo
159
- 'at-rule-name-newline-after': null,
160
- 'block-closing-brace-space-after': null,
161
- */
162
-
163
- /* prettier rules in standard or recommended, no conflict
164
- indentation: null,
165
- 'color-hex-case': null,
166
- 'string-quotes': null,
167
- */
168
-
169
- /* prettier rules in standard or recommended, has conflict
170
- 'max-line-length': null, // default is 120 max line length, prettier goes for 80
171
- */
172
-
173
- /* prettier rules in standard or recommended, check todo
174
- 'at-rule-empty-line-before': null,
175
- 'at-rule-name-case': null,
176
- 'at-rule-name-space-after': null,
177
- 'at-rule-semicolon-newline-after': null,
178
- 'block-closing-brace-empty-line-before': null,
179
- 'block-closing-brace-newline-after': null,
180
- 'block-closing-brace-newline-before': null,
181
- 'block-closing-brace-space-before': null,
182
- 'block-opening-brace-newline-after': null,
183
- 'block-opening-brace-space-after': null,
413
+ /* prettier-conflicts, prefer stylelint-config-standard
184
414
  'block-opening-brace-space-before': null,
185
- 'declaration-bang-space-after': null,
186
- 'declaration-bang-space-before': null,
187
- 'declaration-block-semicolon-newline-after': null,
188
- 'declaration-block-semicolon-space-after': null,
189
- 'declaration-block-semicolon-space-before': null,
190
- 'declaration-block-trailing-semicolon': null,
191
415
  'declaration-colon-newline-after': null,
192
- 'declaration-colon-space-after': null,
193
- 'declaration-colon-space-before': null,
194
- 'function-comma-newline-after': null,
195
- 'function-comma-space-after': null,
196
- 'function-comma-space-before': null,
197
- 'function-max-empty-lines': null,
198
- 'function-parentheses-newline-inside': null,
199
- 'function-parentheses-space-inside': null,
200
- 'max-empty-lines': null,
201
- 'media-feature-colon-space-after': null,
202
- 'media-feature-colon-space-before': null,
203
- 'media-feature-name-case': null,
204
- 'media-feature-parentheses-space-inside': null,
205
- 'media-query-list-comma-newline-after': null,
206
- 'media-query-list-comma-space-after': null,
207
- 'media-query-list-comma-space-before': null,
208
- 'no-empty-first-line': null,
209
- 'no-eol-whitespace': null,
210
- 'no-extra-semicolons': null,
211
- 'no-missing-end-of-source-newline': null,
212
- 'number-leading-zero': null,
213
- 'number-no-trailing-zeros': null,
214
- 'property-case': null,
215
- 'selector-attribute-brackets-space-inside': null,
216
- 'selector-attribute-operator-space-after': null,
217
- 'selector-attribute-operator-space-before': null,
218
- 'selector-attribute-quotes': null,
219
- 'selector-combinator-space-after': null,
220
- 'selector-combinator-space-before': null,
221
- 'selector-descendant-combinator-no-non-space': null,
222
- 'selector-list-comma-newline-after': null,
223
- 'selector-list-comma-space-before': null,
224
- 'selector-max-empty-lines': null,
225
- 'selector-pseudo-class-case': null,
226
- 'selector-pseudo-class-parentheses-space-inside': null,
227
- 'selector-pseudo-element-case': null,
228
- 'unit-case': null,
229
416
  'value-list-comma-newline-after': null,
230
- 'value-list-comma-space-after': null,
231
- 'value-list-comma-space-before': null,
232
- 'value-list-max-empty-lines': null, */
417
+ 'selector-descendant-combinator-no-non-space': null,
418
+ 'selector-combinator-space-before': null
419
+ */
420
+
421
+ /* prettier-conflicts, prefer prettier */
422
+ 'max-line-length': 80,
233
423
 
234
424
  'prettier/prettier': [
235
425
  true,
236
426
  {
237
- preserve: true
427
+ quoteProps: 'preserve'
238
428
  }
239
429
  ],
240
430
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stylelint-config-ccb",
3
- "version": "1.8.3",
3
+ "version": "1.8.6",
4
4
  "description": "Stylelint config which extends stylelint-config-standard",
5
5
  "keywords": [
6
6
  "stylelint",