-
Notifications
You must be signed in to change notification settings - Fork 40
/
.stylelintrc.yaml
85 lines (72 loc) · 2.6 KB
/
.stylelintrc.yaml
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
extends:
- stylelint-prettier/recommended
- stylelint-config-recommended
- stylelint-config-recommended-scss
- stylelint-stylistic/config
ignoreFiles:
- indico/web/static/dist/**/*.css
rules:
# this rule is too noisy
no-descending-specificity: null
# complains about css rules after `@include` without an empty line
declaration-empty-line-before: null
# `:global()` has special meaning in css modules
selector-pseudo-class-no-unknown:
- true
- ignorePseudoClasses: [global]
selector-pseudo-element-colon-notation: double
font-family-no-missing-generic-family-keyword:
- true
- ignoreFontFamilies: [icomoon-ultimate]
at-rule-empty-line-before:
- always
- except:
- first-nested
ignore:
- blockless-after-same-name-blockless
- after-comment
- inside-block
color-hex-length: short
length-zero-no-unit: true
rule-empty-line-before:
- always
- except: [first-nested]
ignore: [after-comment]
value-keyword-case: lower
scss/at-import-partial-extension: never
scss/at-function-pattern: ^([a-z][a-z0-9]*)(-[a-z0-9]+)*$
scss/at-mixin-argumentless-call-parentheses: always
scss/at-mixin-pattern: ^_?([a-z][a-z0-9]*)(-[a-z0-9]+)*$
scss/at-rule-conditional-no-parentheses: true
scss/dollar-variable-pattern: ^([a-z][a-z0-9]*)(-[a-z0-9]+)*$
scss/percent-placeholder-pattern: ^([a-z][a-z0-9]*)(-[a-z0-9]+)*$
scss/double-slash-comment-whitespace-inside: always
scss/declaration-nested-properties: never
scss/dimension-no-non-numeric-values: true
scss/load-no-partial-leading-underscore: true
scss/media-feature-value-dollar-variable:
- always
- ignore: [keywords]
severity: warning
scss/no-duplicate-dollar-variables:
- true
- ignoreInside: [at-rule, nested-at-rule]
ignoreInsideAtRules: [if, else, function, each]
scss/no-duplicate-mixins: true
# we have "empty" comments in our license header
scss/comment-no-empty: null
# we make heavy use of globals like darken() and lighten()
scss/no-global-function-names: null
# heavily used
scss/at-extend-no-missing-placeholder: null
# prettier's formatting can violate this
scss/operator-no-newline-after: null
# single quotes are clearly superior
stylistic/string-quotes: single
# these rule conflict with stylelint-prettier formatting
stylistic/indentation: null
stylistic/selector-descendant-combinator-no-non-space: null
stylistic/declaration-colon-newline-after: null
stylistic/selector-combinator-space-before: null
stylistic/block-closing-brace-newline-after: null
stylistic/value-list-comma-newline-after: null