-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
197 lines (197 loc) · 5.99 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
module.exports = {
extends: 'stylelint-config-standard-scss',
plugins: ['stylelint-order'],
customSyntax: 'postcss-scss',
rules: {
'at-rule-disallowed-list': ['debug', 'extend'],
'at-rule-no-vendor-prefix': true,
'block-no-empty': true,
'color-hex-length': 'short',
'color-named': 'never',
'color-no-invalid-hex': true,
'custom-property-no-missing-var-function': true,
'declaration-block-no-duplicate-custom-properties': true,
'declaration-block-no-duplicate-properties': true,
'declaration-block-no-shorthand-property-overrides': true,
'declaration-block-single-line-max-declarations': 1,
'declaration-no-important': true,
'declaration-property-value-disallowed-list': {
'/^border/': ['none'],
'/^transition/': ['/all/'],
'/^background/': ['http:', 'https:'],
},
'font-family-name-quotes': 'always-where-recommended',
'font-family-no-duplicate-names': true,
'font-family-no-missing-generic-family-keyword': true,
'font-weight-notation': 'numeric',
'function-calc-no-unspaced-operator': true,
'function-linear-gradient-no-nonstandard-direction': true,
'function-url-quotes': 'always',
'keyframe-block-no-duplicate-selectors': true,
'keyframe-declaration-no-important': true,
'length-zero-no-unit': true,
'max-nesting-depth': [
3,
{
ignoreAtRules: ['each', 'else', 'if', 'include', 'media', 'supports'],
},
],
'media-feature-name-no-unknown': true,
'media-feature-name-no-vendor-prefix': true,
'named-grid-areas-no-invalid': true,
'no-descending-specificity': true,
'no-duplicate-selectors': true,
'no-empty-source': true,
'no-invalid-position-at-import-rule': [
true,
{
ignoreAtRules: ['use', 'forward'],
},
],
'no-irregular-whitespace': true,
'order/order': [
[
'custom-properties',
'dollar-variables',
{
type: 'at-rule',
name: 'extend',
},
{
type: 'at-rule',
name: 'include',
hasBlock: false,
},
'declarations',
{
type: 'at-rule',
name: 'include',
hasBlock: true,
},
'rules',
],
],
'order/properties-order': [
[
'position',
'z-index',
'top',
'right',
'bottom',
'left',
'display',
'overflow',
'width',
'min-width',
'max-width',
'height',
'min-height',
'max-height',
'box-sizing',
'grid',
'grid-area',
'grid-template',
'grid-template-areas',
'grid-template-rows',
'grid-template-columns',
'grid-row',
'grid-row-start',
'grid-row-end',
'grid-column',
'grid-column-start',
'grid-column-end',
'grid-auto-rows',
'grid-auto-columns',
'grid-auto-flow',
'gap',
'grid-gap',
'grid-row-gap',
'grid-column-gap',
'flex',
'flex-basis',
'flex-direction',
'flex-flow',
'flex-grow',
'flex-shrink',
'flex-wrap',
'align-content',
'align-items',
'align-self',
'justify-content',
'order',
'padding',
'padding-top',
'padding-right',
'padding-bottom',
'padding-left',
'border',
'border-top',
'border-right',
'border-bottom',
'border-left',
'margin',
'margin-top',
'margin-right',
'margin-bottom',
'margin-left',
],
{
unspecified: 'bottomAlphabetical',
},
],
'property-no-unknown': true,
'property-no-vendor-prefix': true,
'rule-empty-line-before': [
'always-multi-line',
{
except: ['first-nested'],
ignore: ['after-comment'],
},
],
'scss/at-extend-no-missing-placeholder': true,
'scss/at-function-pattern': '^[_-]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
'scss/load-partial-extension': 'never',
'scss/at-mixin-pattern': '^[_-]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
'scss/at-rule-no-unknown': true,
'scss/comment-no-empty': null,
'scss/declaration-nested-properties-no-divided-groups': true,
'scss/dollar-variable-colon-space-after': 'always',
'scss/dollar-variable-colon-space-before': 'never',
'scss/dollar-variable-no-missing-interpolation': true,
'scss/dollar-variable-pattern': '^[_-]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
'scss/function-quote-no-quoted-strings-inside': true,
'scss/function-unquote-no-unquoted-strings-inside': true,
'scss/load-no-partial-leading-underscore': true,
'scss/percent-placeholder-pattern': '^[_-]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$',
'scss/no-duplicate-mixins': true,
'scss/no-global-function-names': true,
'scss/operator-no-newline-after': true,
'scss/operator-no-newline-before': true,
'scss/operator-no-unspaced': true,
'scss/selector-no-redundant-nesting-selector': true,
'selector-attribute-quotes': 'always',
'selector-class-pattern': [
'^[a-z]([-]?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)?(--[a-z0-9]([-]?[a-z0-9]+)*)?$',
{
resolveNestedSelectors: true,
message: function expected(selectorValue) {
return `Expected class selector "${selectorValue}" to match BEM CSS pattern https://en.bem.info/methodology/css.`;
},
},
],
'selector-max-attribute': 2,
'selector-max-class': 3,
'selector-max-compound-selectors': 3,
'selector-max-id': 0,
'selector-max-specificity': '0,3,0',
'selector-max-universal': 1,
'selector-no-qualifying-type': true,
'selector-no-vendor-prefix': true,
'selector-pseudo-class-no-unknown': [true, { ignorePseudoClasses: ['global'] }],
'selector-pseudo-element-colon-notation': 'double',
'selector-pseudo-element-no-unknown': true,
'shorthand-property-no-redundant-values': true,
'string-no-newline': true,
'value-no-vendor-prefix': true,
},
};