-
Notifications
You must be signed in to change notification settings - Fork 56
/
.stylelintrc.yml
157 lines (115 loc) · 3.65 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
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
# main ruleset availabe here
# https://stylelint.io/user-guide/rules/
plugins: stylelint-scss
rules:
# Possible errors
property-no-unknown: true
## Color
color-no-invalid-hex: true
## Font family
font-family-no-duplicate-names: true
## String
string-no-newline: true
## Unit
unit-no-unknown: true
## Keyframe declaration
keyframe-declaration-no-important: true
## Block
block-no-empty: true
## Selector
selector-pseudo-class-no-unknown: true
## General / Sheet
no-duplicate-selectors: true
no-empty-source: true
no-extra-semicolons: true
# Limit language features
## Declaration
#declaration-property-value-blacklist: [ { '/^outline$/': 'none' }]
# Stylistic issues
## Number
number-no-trailing-zeros: true
## Length
length-zero-no-unit: true
## Unit
unit-case: lower
## Value
## Value list
max-empty-lines: 2
## Property
property-case: lower
## Declaration
declaration-bang-space-before: always
declaration-colon-space-after: always
declaration-colon-space-before: never
## Declaration block
declaration-block-trailing-semicolon: always
## Block
block-closing-brace-empty-line-before: never
block-opening-brace-space-before: always
## Selector
selector-pseudo-element-case: lower
selector-pseudo-element-colon-notation: double
## Selector list
selector-list-comma-space-after: always-single-line
selector-list-comma-space-before: never
## General / Sheet
#indentation: 4
no-eol-whitespace: true
# stylelint-scss
## Rules
### `@`-else
scss/at-else-closing-brace-newline-after: always-last-in-chain
scss/at-else-closing-brace-space-after: always-intermediate
scss/at-else-empty-line-before: never
scss/at-else-if-parentheses-space-before: always
### `@`-extend
#scss/at-extend-no-missing-placeholder: true
### `@`-function
#scss/at-function-named-arguments: never
scss/at-function-parentheses-space-before: never
# scss/at-function-pattern:
### `@`-if
scss/at-if-closing-brace-newline-after: always-last-in-chain
scss/at-if-closing-brace-space-after: always-intermediate
### `@`-import
scss/at-import-no-partial-leading-underscore: true
# scss/at-import-partial-extension-blacklist:
# scss/at-import-partial-extension-whitelist:
### `@`-mixin
scss/at-mixin-argumentless-call-parentheses: always
#scss/at-mixin-named-arguments: never
scss/at-mixin-parentheses-space-before: never
# scss/at-mixin-pattern:
### `@`-rule
scss/at-rule-no-unknown: true
### `$`-variable
#scss/dollar-variable-colon-newline-after: always-multi-line
scss/dollar-variable-colon-space-after: always
scss/dollar-variable-colon-space-before: never
# scss/dollar-variable-default: true
# scss/dollar-variable-empty-line-before: always
scss/dollar-variable-no-missing-interpolation: true
# scss/dollar-variable-pattern:
### `%`-placeholder
# scss/percent-placeholder-pattern:
### `//`-comment
#scss/double-slash-comment-empty-line-before: always
#scss/double-slash-comment-inline: always
#scss/double-slash-comment-whitespace-inside: always
### Declaration
scss/declaration-nested-properties: never
scss/declaration-nested-properties-no-divided-groups: true
### Media feature
#scss/media-feature-value-dollar-variable: always
### Operator
scss/operator-no-newline-after: true
scss/operator-no-newline-before: true
#scss/operator-no-unspaced: true
### Partial
#scss/partial-no-import: true
### Selector
#scss/selector-nest-combinators: always
#scss/selector-no-redundant-nesting-selector: true
### General / Sheet
#scss/no-dollar-variables: true
#scss/no-duplicate-dollar-variables: true