forked from inkline/inkline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.yml
85 lines (67 loc) · 2.97 KB
/
.stylelintrc.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
---
plugins:
- stylelint-scss
extends:
- stylelint-config-standard
- stylelint-config-recommended-scss
ignoreFiles: []
rules:
# https://stylelint.io/user-guide/rules/at-rule-empty-line-before
at-rule-empty-line-before:
- always
- ignore:
- after-comment
- first-nested
- blockless-after-blockless
- ignoreAtRules:
- else
- else if
# https://stylelint.io/user-guide/rules/block-closing-brace-newline-after
block-closing-brace-newline-after:
- always
# https://stylelint.io/user-guide/rules/color-hex-length
color-hex-length: long
# https://stylelint.io/user-guide/rules/font-family-name-quotes
font-family-name-quotes: always-unless-keyword
# https://stylelint.io/user-guide/rules/declaration-block-single-line-max-declarations
declaration-block-single-line-max-declarations: 1
indentation: 4
# https://stylelint.io/user-guide/rules/no-descending-specificity
# FIXME: To ensure a good coherence, this should be enabled
no-descending-specificity: null
# https://stylelint.io/user-guide/rules/selector-class-pattern
selector-class-pattern:
- '^[-_a-z0-9]+(?:(-{1,2}|_{1,2})[a-z0-9]+)*$'
- resolveNestedSelectors: true
# https://stylelint.io/user-guide/rules/selector-id-pattern
selector-id-pattern: '^[a-z]+(?:-[a-z]*)*$'
# https://stylelint.io/user-guide/rules/selector-list-comma-newline-after
selector-list-comma-newline-after: always
# https://stylelint.io/user-guide/rules/selector-list-comma-newline-before
selector-list-comma-newline-before: never-multi-line
# https://stylelint.io/user-guide/rules/selector-list-comma-space-after
selector-list-comma-space-after: always-single-line
# https://stylelint.io/user-guide/rules/selector-list-comma-space-before
selector-list-comma-space-before: never
# https://stylelint.io/user-guide/rules/selector-max-id
selector-max-id: 0
# https://stylelint.io/user-guide/rules/selector-type-no-unknown
selector-type-no-unknown:
- true
# https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/double-slash-comment-empty-line-before/README.md
scss/double-slash-comment-empty-line-before:
- always
- ignore:
- between-comments
- stylelint-commands
# https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/double-slash-comment-whitespace-inside/README.md
scss/double-slash-comment-whitespace-inside: always
# https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/media-feature-value-dollar-variable/README.md
scss/media-feature-value-dollar-variable: always
# https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/no-duplicate-dollar-variables/README.md
scss/no-duplicate-dollar-variables:
- true
- ignoreInsideAtRules:
- mixin
- if
- else