-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
269 lines (268 loc) · 8.48 KB
/
index.js
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
"use strict"
module.exports = {
extends: [
"stylelint-config-standard",
],
plugins: [
"stylelint-csstree-validator",
"stylelint-scss",
"stylelint-order",
],
rules: {
//
// Color
// ====================
"color-named": "never", // Require (where possible) or disallow named colors.
//
// Font
// ====================
"font-family-name-quotes": "always-where-recommended", // Specify whether or not quotation marks should be used around font family names.
//
// Function
// ====================
"function-comma-newline-before": "never-multi-line", // Require a newline or disallow whitespace before the commas of functions.
"function-comma-space-before": "never-single-line", // Require a single space or disallow whitespace before the commas of functions.
"function-parentheses-space-inside": "never", // Require a single space or disallow whitespace on the inside of the parentheses of functions.
"function-url-quotes": "always", // Require or disallow quotes for urls.
//
// Number
// ====================
"number-leading-zero": "never", // Require or disallow a leading zero for fractional numbers less than 1.
"number-max-precision": 4, // Limit the number of decimal places allowed in numbers.
//
// String
// ====================
"string-quotes": "double", // Specify single or double quotes around strings.
//
// Unit
// ====================
"unit-blacklist": [ "in", "cm", "mm" ], // Specify a blacklist of disallowed units.
//
// Value
// ====================
"value-keyword-case": "lower", // Specify lowercase or uppercase for keywords values.
"value-no-vendor-prefix": true, // Disallow vendor prefixes for values.
//
// Value list
// ====================
"value-list-comma-newline-before": "never-multi-line", // Require a newline or disallow whitespace before the commas of value lists.
"value-list-comma-space-before": "never-single-line", // Require a single space or disallow whitespace before the commas of value lists.
//
// Property
// ====================
"property-no-vendor-prefix": true, // Disallow vendor prefixes for properties.
//
// Declaration block
// ====================
"declaration-block-no-duplicate-properties": true, // Disallow duplicate properties within declaration blocks.
"declaration-block-semicolon-newline-after": "always", // Require a newline or disallow whitespace after the semicolons of declaration blocks.
"declaration-block-semicolon-newline-before": "never-multi-line", // Require a newline or disallow whitespace before the semicolons of declaration blocks.
//
// Selector
// ====================
"selector-max-id": 0, // Disallow id selectors.
"selector-no-vendor-prefix": true, // Disallow vendor prefixes for selectors.
"selector-pseudo-element-colon-notation": "single", // Specify single or double colon notation for applicable pseudo-elements.
//
// Selector list
// ====================
"selector-list-comma-newline-before": "never-multi-line", // Require a newline or disallow whitespace before the commas of selector lists.
//
// Rule
// ====================
"rule-empty-line-before": [ // Require or disallow an empty line before nested rules.
"always",
{
except: ["first-nested"], // Reverse the primary option if the rule is the first in a block.
ignore: ["after-comment"], // Ignore rules that come after a comment.
},
],
//
// Media feature
// ====================
"media-feature-name-no-vendor-prefix": true, // Disallow vendor prefixes for media feature names.
//
// Media query list
// ====================
"media-query-list-comma-newline-before": "never-multi-line", // Require a newline or disallow whitespace before the commas of media query lists.
//
// At-rule
// ====================
"at-rule-name-space-after": "always", // Require a single space after at-rule names.
"at-rule-no-vendor-prefix": true, // Disallow vendor prefixes for at-rules.
//
// General / Sheet
// ====================
"max-line-length": 120, // Limit the length of a line.
"no-duplicate-selectors": true, // Disallow duplicate selectors.
//
// Plugin - CSSTree Validator
// ==========================
"csstree/validator": true,
//
// Plugin - Scss
// ==========================
"scss/at-mixin-argumentless-call-parentheses": "always", // Require or disallow parentheses in argumentless @mixin calls.
"scss/dollar-variable-colon-space-after": "always", // Require a single space or disallow whitespace after the colon in $-variable declarations.
"scss/dollar-variable-colon-space-before": "never", // Require a single space or disallow whitespace before the colon in $-variable declarations.
//
// Plugin - Order
// ==========================
"order/order": [ // Specify the order of content within declaration blocks.
"custom-properties",
"dollar-variables",
"at-rules",
"declarations",
"rules",
],
"order/properties-order": [ // Specify the almost strict order of properties within declaration blocks.
"position",
"top",
"right",
"bottom",
"left",
"z-index",
"display",
"float",
"width",
"height",
"max-width",
"max-height",
"min-width",
"min-height",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"margin-collapse",
"margin-top-collapse",
"margin-right-collapse",
"margin-bottom-collapse",
"margin-left-collapse",
"overflow",
"overflow-x",
"overflow-y",
"clip",
"clear",
"font",
"font-family",
"font-size",
"font-smoothing",
"osx-font-smoothing",
"font-style",
"font-weight",
"font-variant",
"hyphens",
"src",
"line-height",
"letter-spacing",
"word-spacing",
"color",
"text-align",
"text-decoration",
"text-indent",
"text-overflow",
"text-rendering",
"text-size-adjust",
"text-shadow",
"text-transform",
"word-break",
"word-wrap",
"white-space",
"vertical-align",
"list-style",
"list-style-type",
"list-style-position",
"list-style-image",
"pointer-events",
"cursor",
"background",
"background-attachment",
"background-color",
"background-image",
"background-position",
"background-repeat",
"background-size",
"border",
"border-collapse",
"border-top",
"border-right",
"border-bottom",
"border-left",
"border-color",
"border-image",
"border-top-color",
"border-right-color",
"border-bottom-color",
"border-left-color",
"border-spacing",
"border-style",
"border-top-style",
"border-right-style",
"border-bottom-style",
"border-left-style",
"border-width",
"border-top-width",
"border-right-width",
"border-bottom-width",
"border-left-width",
"border-radius",
"border-top-right-radius",
"border-bottom-right-radius",
"border-bottom-left-radius",
"border-top-left-radius",
"border-radius-topright",
"border-radius-bottomright",
"border-radius-bottomleft",
"border-radius-topleft",
"content",
"quotes",
"outline",
"outline-offset",
"opacity",
"filter",
"visibility",
"size",
"zoom",
"transform",
"box-align",
"box-flex",
"box-orient",
"box-pack",
"box-shadow",
"box-sizing",
"table-layout",
"animation",
"animation-delay",
"animation-duration",
"animation-iteration-count",
"animation-name",
"animation-play-state",
"animation-timing-function",
"animation-fill-mode",
"transition",
"transition-delay",
"transition-duration",
"transition-property",
"transition-timing-function",
"background-clip",
"backface-visibility",
"resize",
"appearance",
"user-select",
"interpolation-mode",
"direction",
"marks",
"page",
"set-link-source",
"unicode-bidi",
"speak",
],
},
}