forked from indico/indico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.yaml
74 lines (62 loc) · 2.16 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
extends:
- stylelint-prettier/recommended
- stylelint-config-recommended
- stylelint-config-recommended-scss
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-no-partial-leading-underscore: true
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/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