forked from CrocoDillon/universal-react-redux-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.js
440 lines (386 loc) · 19.5 KB
/
.stylelintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
module.exports = {
rules: {
// Color
// http://stylelint.io/user-guide/rules/#color
// specify lowercase or uppercase for hex colors
'color-hex-case': 'lower',
// specify short or long notation for hex colors
'color-hex-length': 'short',
// require (where possible) or disallow named colors
'color-named': null,
// disallow hex colors
'color-no-hex': null,
// disallow invalid hex colors
'color-no-invalid-hex': true,
// Font Family
// http://stylelint.io/user-guide/rules/#font-family
// specify whether or not quotation marks should be used around font family names
'font-family-name-quotes': 'always-where-recommended',
// disallow duplicate font family names
'font-family-no-duplicate-names': true,
// Font Weight
// http://stylelint.io/user-guide/rules/#font-weight
// require numeric or named (where possible) font-weight values
'font-weight-notation': 'numeric',
// Function
// http://stylelint.io/user-guide/rules/#function
// specify a blacklist of disallowed functions
'function-blacklist': null,
// disallow an unspaced operator within calc functions
'function-calc-no-unspaced-operator': true,
// require a newline or disallow whitespace after the commas of functions
'function-comma-newline-after': 'always-multi-line',
// require a newline or disallow whitespace before the commas of functions
'function-comma-newline-before': 'never-multi-line',
// require a single space or disallow whitespace after the commas of functions
'function-comma-space-after': 'always-single-line',
// require a single space or disallow whitespace before the commas of functions
'function-comma-space-before': 'never',
// disallow direction values in linear-gradient() calls that are not valid according to the standard syntax
'function-linear-gradient-no-nonstandard-direction': true,
// limit the number of adjacent empty lines within functions
'function-max-empty-lines': null,
// specify lowercase or uppercase for function names
'function-name-case': 'lower',
// require a newline or disallow whitespace on the inside of the parentheses of functions
'function-parentheses-newline-inside': 'always-multi-line',
// require a single space or disallow whitespace on the inside of the parentheses of functions
'function-parentheses-space-inside': 'never',
// require or disallow data URIs for urls
'function-url-data-uris': null,
// disallow scheme-relative urls
'function-url-no-scheme-relative': true,
// require or disallow quotes for urls
'function-url-quotes': 'always',
// specify a whitelist of allowed url schemes
'function-url-scheme-whitelist': null,
// specify a whitelist of allowed functions
'function-whitelist': null,
// require or disallow whitespace after functions
'function-whitespace-after': 'always',
// Number
// http://stylelint.io/user-guide/rules/#number
// require or disallow a leading zero for fractional numbers less than 1
'number-leading-zero': 'always',
// limit the number of decimal places allowed in numbers
'number-max-precision': 4,
// disallow trailing zeros in numbers
'number-no-trailing-zeros': true,
// String
// http://stylelint.io/user-guide/rules/#string
// disallow (unescaped) newlines in strings
'string-no-newline': true,
// specify single or double quotes around strings
'string-quotes': 'single',
// Length
// http://stylelint.io/user-guide/rules/#length
// disallow units for zero lengths
'length-zero-no-unit': true,
// Time
// http://stylelint.io/user-guide/rules/#time
// specify the minimum number of milliseconds for time values
'time-min-milliseconds': 100,
// Unit
// http://stylelint.io/user-guide/rules/#unit
// specify a blacklist of disallowed units
'unit-blacklist': null,
// specify lowercase or uppercase for units
'unit-case': 'lower',
// disallow unknown units
'unit-no-unknown': true,
// specify a whitelist of allowed units
'unit-whitelist': null,
// Value
// http://stylelint.io/user-guide/rules/#value
// specify lowercase or uppercase for keywords values
'value-keyword-case': 'lower',
// disallow vendor prefixes for values
'value-no-vendor-prefix': true,
// Value List
// http://stylelint.io/user-guide/rules/#value-list
// require a newline or disallow whitespace after the commas of value lists
'value-list-comma-newline-after': 'always-multi-line',
// require a newline or disallow whitespace before the commas of value lists
'value-list-comma-newline-before': 'never-multi-line',
// require a single space or disallow whitespace after the commas of value lists
'value-list-comma-space-after': 'always-single-line',
// require a single space or disallow whitespace before the commas of value lists
'value-list-comma-space-before': 'never',
// limit the number of adjacent empty lines within value lists
'value-list-max-empty-lines': 0,
// Custom Property
// http://stylelint.io/user-guide/rules/#custom-property
// require or disallow an empty line before custom properties
'custom-property-empty-line-before': 'always',
// disallow custom properties outside of :root rules
'custom-property-no-outside-root': null,
// specify a pattern for custom properties
'custom-property-pattern': null,
// Shorthand Property
// http://stylelint.io/user-guide/rules/#shorthand-property
// disallow redundant values in shorthand properties
'shorthand-property-no-redundant-values': true,
// Property
// http://stylelint.io/user-guide/rules/#property
// specify a blacklist of disallowed properties
'property-blacklist': null,
// specify lowercase or uppercase for properties
'property-case': 'lower',
// disallow unknown properties
'property-no-unknown': true,
// disallow vendor prefixes for properties
'property-no-vendor-prefix': true,
// specify a whitelist of allowed properties
'property-whitelist': null,
// Keyframe declaration
// http://stylelint.io/user-guide/rules/#keyframe-declaration
// disallow !important within keyframe declarations
'keyframe-declaration-no-important': true,
// Declaration
// http://stylelint.io/user-guide/rules/#declaration
// require a single space or disallow whitespace after the bang of declarations
'declaration-bang-space-after': 'never',
// require a single space or disallow whitespace before the bang of declarations
'declaration-bang-space-before': 'always',
// require a newline or disallow whitespace after the colon of declarations
'declaration-colon-newline-after': 'always-multi-line',
// require a single space or disallow whitespace after the colon of declarations
'declaration-colon-space-after': 'always-single-line',
// require a single space or disallow whitespace before the colon of declarations
'declaration-colon-space-before': 'never',
// require or disallow an empty line before declarations
'declaration-empty-line-before': null,
// disallow !important within declarations
'declaration-no-important': null,
// specify a blacklist of disallowed property and unit pairs within declarations
'declaration-property-unit-blacklist': {},
// specify a whitelist of allowed property and unit pairs within declarations
'declaration-property-unit-whitelist': {},
// specify a blacklist of disallowed property and value pairs within declarations
'declaration-property-value-blacklist': {},
// specify a whitelist of allowed property and value pairs within declarations
'declaration-property-value-whitelist': {},
// Declaration Block
// http://stylelint.io/user-guide/rules/#declaration-block
// disallow duplicate properties within declaration blocks
'declaration-block-no-duplicate-properties': true,
// disallow longhand properties that can be combined into one shorthand property
'declaration-block-no-redundant-longhand-properties': true,
// disallow shorthand properties that override related longhand properties within declaration blocks
'declaration-block-no-shorthand-property-overrides': true,
// specify the order of properties within declaration blocks
'declaration-block-properties-order': null,
// require a newline or disallow whitespace after the semicolons of declaration blocks
'declaration-block-semicolon-newline-after': 'always',
// require a newline or disallow whitespace before the semicolons of declaration blocks
'declaration-block-semicolon-newline-before': 'never-multi-line',
// require a single space or disallow whitespace after the semicolons of declaration blocks
'declaration-block-semicolon-space-after': 'always-single-line',
// require a single space or disallow whitespace before the semicolons of declaration blocks
'declaration-block-semicolon-space-before': 'never',
// limit the number of declaration within single line declaration blocks
'declaration-block-single-line-max-declarations': null,
// require or disallow a trailing semicolon within declaration blocks
'declaration-block-trailing-semicolon': 'always',
// Block
// http://stylelint.io/user-guide/rules/#block
// require or disallow an empty line before the closing brace of blocks
'block-closing-brace-empty-line-before': 'never',
// require a newline or disallow whitespace after the closing brace of blocks
'block-closing-brace-newline-after': 'always',
// require a newline or disallow whitespace before the closing brace of blocks
'block-closing-brace-newline-before': 'always',
// require a single space or disallow whitespace after the closing brace of blocks
'block-closing-brace-space-after': 'always-single-line',
// require a single space or disallow whitespace before the closing brace of blocks
'block-closing-brace-space-before': 'always-single-line',
// disallow empty blocks
'block-no-empty': true,
// require a newline after the opening brace of blocks
'block-opening-brace-newline-after': 'always',
// require a newline or disallow whitespace before the opening brace of blocks
'block-opening-brace-newline-before': null,
// require a single space or disallow whitespace after the opening brace of blocks
'block-opening-brace-space-after': 'always-single-line',
// require a single space or disallow whitespace before the opening brace of blocks
'block-opening-brace-space-before': 'always',
// Selector
// http://stylelint.io/user-guide/rules/#selector
// require a single space or disallow whitespace on the inside of the brackets within attribute selectors
'selector-attribute-brackets-space-inside': 'never',
// specify a blacklist of disallowed attribute operators
'selector-attribute-operator-blacklist': [],
// require a single space or disallow whitespace after operators within attribute selectors
'selector-attribute-operator-space-after': 'never',
// require a single space or disallow whitespace before operators within attribute selectors
'selector-attribute-operator-space-before': 'never',
// specify a whitelist of allowed attribute operators
'selector-attribute-operator-whitelist': null,
// require or disallow quotes for attribute values
'selector-attribute-quotes': 'always',
// specify a pattern for class selectors
'selector-class-pattern': null,
// require a single space or disallow whitespace after the combinators of selectors
'selector-combinator-space-after': 'always',
// require a single space or disallow whitespace before the combinators of selectors
'selector-combinator-space-before': 'always',
// disallow non-space characters for descendant combinators of selectors
'selector-descendant-combinator-no-non-space': true,
// specify a pattern for id selectors
'selector-id-pattern': null,
// limit the number of compound selectors in a selector
'selector-max-compound-selectors': 3,
// limit the specificity of selectors
'selector-max-specificity': null,
// specify a pattern for the selectors of rules nested within rules
'selector-nested-pattern': null,
// disallow attribute selectors
'selector-no-attribute': null,
// disallow combinators in selectors
'selector-no-combinator': null,
// disallow id selectors
'selector-no-id': true,
// disallow qualifying a selector by type
'selector-no-qualifying-type': true,
// disallow type selectors
'selector-no-type': null,
// disallow the universal selector
'selector-no-universal': null,
// disallow vendor prefixes for selectors
'selector-no-vendor-prefix': true,
// specify a blacklist of disallowed pseudo-class selectors
'selector-pseudo-class-blacklist': [],
// specify lowercase or uppercase for pseudo-class selectors
'selector-pseudo-class-case': 'lower',
// disallow unknown pseudo-class selectors
'selector-pseudo-class-no-unknown': true,
// require a single space or disallow whitespace on the inside of the parentheses within pseudo-class selectors
'selector-pseudo-class-parentheses-space-inside': 'never',
// specify a whitelist of allowed pseudo-class selectors
'selector-pseudo-class-whitelist': null,
// specify lowercase or uppercase for pseudo-element selectors
'selector-pseudo-element-case': 'lower',
// specify single or double colon notation for applicable pseudo-elements
'selector-pseudo-element-colon-notation': 'double',
// disallow unknown pseudo-element selectors
'selector-pseudo-element-no-unknown': true,
// specify lowercase or uppercase for type selector
'selector-type-case': 'lower',
// disallow unknown type selectors
'selector-type-no-unknown': true,
// limit the number of adjacent empty lines within selectors
'selector-max-empty-lines': 0,
// Selector List
// http://stylelint.io/user-guide/rules/#selector-list
// require a newline or disallow whitespace after the commas of selector lists
'selector-list-comma-newline-after': 'always-multi-line',
// require a newline or disallow whitespace before the commas of selector lists
'selector-list-comma-newline-before': 'never-multi-line',
// require a single space or disallow whitespace after the commas of selector lists
'selector-list-comma-space-after': 'always-single-line',
// require a single space or disallow whitespace before the commas of selector lists
'selector-list-comma-space-before': 'never',
// Rule
// http://stylelint.io/user-guide/rules/#rule
// require or disallow an empty line before rules
'rule-empty-line-before': null,
// Media Feature
// http://stylelint.io/user-guide/rules/#media-feature
// require a single space or disallow whitespace after the colon in media features
'media-feature-colon-space-after': 'always',
// require a single space or disallow whitespace before the colon in media features
'media-feature-colon-space-before': 'never',
// specify a blacklist of disallowed media feature names
'media-feature-name-blacklist': null,
// specify lowercase or uppercase for media feature names
'media-feature-name-case': 'lower',
// disallow unknown media feature names
'media-feature-name-no-unknown': null,
// disallow vendor prefixes for media feature names
'media-feature-name-no-vendor-prefix': true,
// specify a whitelist of allowed media feature names
'media-feature-name-whitelist': null,
// require a single space or disallow whitespace on the inside of the parentheses within media features
'media-feature-parentheses-space-inside': 'never',
// require a single space or disallow whitespace after the range operator in media features
'media-feature-range-operator-space-after': 'always',
// require a single space or disallow whitespace before the range operator in media features
'media-feature-range-operator-space-before': 'always',
// Custom Media
// http://stylelint.io/user-guide/rules/#custom-media
// specify a pattern for custom media query names
'custom-media-pattern': null,
// Media Query List
// http://stylelint.io/user-guide/rules/#media-query-list
// require a newline or disallow whitespace after the commas of media query lists
'media-query-list-comma-newline-after': 'always-multi-line',
// require a newline or disallow whitespace before the commas of media query lists
'media-query-list-comma-newline-before': 'never-multi-line',
// require a single space or disallow whitespace after the commas of media query lists
'media-query-list-comma-space-after': 'always-single-line',
// require a single space or disallow whitespace before the commas of media query lists
'media-query-list-comma-space-before': 'never',
// At-Rule
// http://stylelint.io/user-guide/rules/#at-rule
// specify a blacklist of disallowed at-rules
'at-rule-blacklist': [],
// require or disallow an empty line before at-rules
'at-rule-empty-line-before': 'always',
// specify lowercase or uppercase for at-rules names
'at-rule-name-case': 'lower',
// require a newline after at-rule names
'at-rule-name-newline-after': 'always-multi-line',
// require a single space after at-rule names
'at-rule-name-space-after': 'always-single-line',
// disallow unknown at-rules
'at-rule-no-unknown': true,
// disallow vendor prefixes for at-rules
'at-rule-no-vendor-prefix': true,
// require a newline after the semicolon of at-rules
'at-rule-semicolon-newline-after': 'always',
// require a single space or disallow whitespace before the semicolons of at rules
'at-rule-semicolon-space-before': 'never',
// specify a whitelist of allowed at-rules
'at-rule-whitelist': null,
// Comment
// http://stylelint.io/user-guide/rules/#comment
// require or disallow an empty line before comments
'comment-empty-line-before': 'always',
// disallow empty comments
'comment-no-empty': true,
// require or disallow whitespace on the inside of comment markers
'comment-whitespace-inside': 'always',
// specify a blacklist of disallowed words within comments
'comment-word-blacklist': null,
// General / Sheet
//http://stylelint.io/user-guide/rules/#general--sheet
// specify indentation
'indentation': 2,
// limit the number of adjacent empty lines
'max-empty-lines': 2,
// limit the length of a line
'max-line-length': null,
// limit the depth of nesting
'max-nesting-depth': 2,
// disallow selectors of lower specificity from coming after overriding selectors of higher specificity
'no-descending-specificity': null,
// disallow duplicate selectors
'no-duplicate-selectors': true,
// disallow empty sources
'no-empty-source': true,
// disallow end-of-line whitespace
'no-eol-whitespace': true,
// disallow extra semicolons
'no-extra-semicolons': true,
// disallow colors that are suspiciously close to being identical
'no-indistinguishable-colors': null,
// disallow double-slash comments (//...) which are not supported by CSS
'no-invalid-double-slash-comments': null,
// disallow missing end-of-source newlines
'no-missing-end-of-source-newline': true,
// disallow animation names that do not correspond to a @keyframes declaration
'no-unknown-animations': true,
// disallow features that are unsupported by the browsers that you are targeting
'no-unsupported-browser-features': null
}
}