forked from TEAMMATES/teammates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteammates-stylelint.yml
533 lines (347 loc) · 16.3 KB
/
teammates-stylelint.yml
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
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
rules:
# Color
# Specify lowercase or uppercase for hex colors
# color-hex-case
# Specify short or long notation for hex colors
# color-hex-length
# Require (where possible) or disallow named colors
# color-named
# Disallow hex colors
# color-no-hex
# Disallow invalid hex colors
color-no-invalid-hex: true
# Font family
# Specify whether or not quotation marks should be used around font family names
# font-family-name-quotes
# Disallow duplicate font family names.
# font-family-no-duplicate-names
# Font weight
# Require numeric or named (where possible) font-weight values
# font-weight-notation
# Function
# Specify a blacklist of disallowed functions
# function-blacklist
# Disallow an unspaced operator within calc functions
# function-calc-no-unspaced-operator
# Require a newline or disallow whitespace after the commas of functions
# function-comma-newline-after
# Require a newline or disallow whitespace before the commas of functions
# function-comma-newline-before
# Require a single space or disallow whitespace after the commas of functions
function-comma-space-after: "always"
# 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
# Limit the number of adjacent empty lines within functions
function-max-empty-lines: 1
# Specify lowercase or uppercase for function names
# function-name-case
# Require a newline or disallow whitespace on the inside of the parentheses of functions
# function-parentheses-newline-inside
# 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
# Disallow scheme-relative urls
# function-url-no-scheme-relative
# Require or disallow quotes for urls
function-url-quotes: "never"
# Specify a whitelist of allowed url schemes
# function-url-scheme-whitelist
# Specify a whitelist of allowed functions
# function-whitelist
# Require or disallow whitespace after functions
# function-whitespace-after
# Number
# Require or disallow a leading zero for fractional numbers less than 1
number-leading-zero: "never"
# Limit the number of decimal places allowed in numbers
number-max-precision: 3
# Disallow trailing zeros in numbers
number-no-trailing-zeros: true
# String
# Disallow (unescaped) newlines in strings
# string-no-newline
# Specify single or double quotes around strings
string-quotes: "single"
# Length
# Disallow units for zero lengths
length-zero-no-unit: true
# Time
# Specify the minimum number of milliseconds for time values.
time-min-milliseconds: 100
# Unit
# Specify a blacklist of disallowed units
# unit-blacklist
# Specify lowercase or uppercase for units
unit-case: "lower"
# Disallow unknown units
unit-no-unknown: true
# Specify a whitelist of allowed units
# unit-whitelist
# Value
# Specify lowercase or uppercase for keywords values
value-keyword-case: "lower"
# Disallow vendor prefixes for values
# value-no-vendor-prefix
# Value list
# Require a newline or disallow whitespace after the commas of value lists
# value-list-comma-newline-after
# Require a newline or disallow whitespace before the commas of value lists
# value-list-comma-newline-before
# Require a single space or disallow whitespace after the commas of value lists
value-list-comma-space-after: "always"
# 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: 1
# Custom property
# Require or disallow an empty line before custom properties
# custom-property-empty-line-before
# Specify a pattern for custom properties
# custom-property-pattern
# Shorthand property
# Disallow redundant values in shorthand properties
# shorthand-property-no-redundant-values
# Property
# Specify a blacklist of disallowed properties
# property-blacklist
# 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
# Specify a whitelist of allowed properties
# property-whitelist
# Keyframe declaration
# Disallow !important within keyframe declarations
# keyframe-declaration-no-important
# Declaration
# Require a single space or disallow whitespace after the bang of declarations
# declaration-bang-space-after
# Require a single space or disallow whitespace before the bang of declarations
# declaration-bang-space-before
# Require a newline or disallow whitespace after the colon of declarations
# declaration-colon-newline-after
# Require a single space or disallow whitespace after the colon of declarations
declaration-colon-space-after: "always"
# 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
# Disallow !important within declarations
# declaration-no-important
# 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
# Disallow duplicate properties within declaration blocks
# declaration-block-no-duplicate-properties
# Disallow longhand properties that can be combined into one shorthand property
# declaration-block-no-redundant-longhand-properties
# Disallow shorthand properties that override related longhand properties within declaration blocks
# declaration-block-no-shorthand-property-overrides
# 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
# Require a single space or disallow whitespace after the semicolons of declaration blocks
# declaration-block-semicolon-space-after
# 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: 1
# Require or disallow a trailing semicolon within declaration blocks
declaration-block-trailing-semicolon: "always"
# 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
# Require a single space or disallow whitespace before the closing brace of blocks
# block-closing-brace-space-before
# 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
# Require a single space or disallow whitespace after the opening brace of blocks
# block-opening-brace-space-after
# Require a single space or disallow whitespace before the opening brace of blocks
block-opening-brace-space-before: "always"
# 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
# Require or disallow quotes for attribute values
selector-attribute-quotes: "always"
# Specify a pattern for class selectors
# selector-class-pattern
# 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
# Specify a pattern for id selectors
# selector-id-pattern
# Limit the number of compound selectors in a selector
# selector-max-compound-selectors
# Limit the specificity of selectors
# selector-max-specificity
# Specify a pattern for the selectors of rules nested within rules
# selector-nested-pattern
# Disallow attribute selectors
# selector-no-attribute
# Disallow combinators in selectors
# selector-no-combinator
# Disallow id selectors
# selector-no-id
# Disallow qualifying a selector by type
# selector-no-qualifying-type
# Disallow type selectors
# selector-no-type
# Disallow the universal selector
# selector-no-universal
# Disallow vendor prefixes for selectors
# selector-no-vendor-prefix
# 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
# 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
# Disallow unknown pseudo-element selectors
# selector-pseudo-element-no-unknown
# Specify lowercase or uppercase for type selector
selector-type-case: "lower"
# Disallow unknown type selectors
# selector-type-no-unknown
# Limit the number of adjacent empty lines within selectors
selector-max-empty-lines: 1
# Selector list
# Require a newline or disallow whitespace after the commas of selector lists
# Used to enforce one selector per line.
selector-list-comma-newline-after: always
# Require a newline or disallow whitespace before the commas of selector lists
# selector-list-comma-newline-before
# Require a single space or disallow whitespace after the commas of selector lists
# selector-list-comma-space-after: "always"
# Require a single space or disallow whitespace before the commas of selector lists
selector-list-comma-space-before: "never"
# Rule
# Require or disallow an empty line before rules
rule-empty-line-before: ["always", { except: "first-nested", ignore: "after-comment" }]
# 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
# Specify lowercase or uppercase for media feature names
media-feature-name-case: "lower"
# Disallow unknown media feature names
# media-feature-name-no-unknown
# Disallow vendor prefixes for media feature names
# media-feature-name-no-vendor-prefix
# Specify a whitelist of allowed media feature names
# media-feature-name-whitelist
# 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
# Require a single space or disallow whitespace before the range operator in media features
# media-feature-range-operator-space-before
# Custom media
# Specify a pattern for custom media query names
# custom-media-pattern
# Media query list
# Require a newline or disallow whitespace after the commas of media query lists
# media-query-list-comma-newline-after
# Require a newline or disallow whitespace before the commas of media query lists
# media-query-list-comma-newline-before
# Require a single space or disallow whitespace after the commas of media query lists
media-query-list-comma-space-after: "always"
# Require a single space or disallow whitespace before the commas of media query lists
media-query-list-comma-space-before: "never"
# 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
# Require a single space after at-rule names
# at-rule-name-space-after
# Disallow unknown at-rules
# at-rule-no-unknown
# Disallow vendor prefixes for at-rules
# at-rule-no-vendor-prefix
# Require a newline after the semicolon of at-rules
# at-rule-semicolon-newline-after
# Specify a whitelist of allowed at-rules
# at-rule-whitelist
# Comment
# Require or disallow an empty line before comments
# comment-empty-line-before
# Disallow empty comments
comment-no-empty: true
# Require or disallow whitespace on the inside of comment markers
# comment-whitespace-inside
# Specify a blacklist of disallowed words within comments
# comment-word-blacklist
# General / Sheet
# Specify indentation
indentation: 4
# Limit the number of adjacent empty lines
# max-empty-lines: 1
# Limit the length of a line
max-line-length: 125
# Limit the depth of nesting
# max-nesting-depth
# Disallow selectors of lower specificity from coming after overriding selectors of higher specificity
# no-descending-specificity
# 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 double-slash comments (//...) which are not supported by CSS
no-invalid-double-slash-comments: true
# 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