-
Notifications
You must be signed in to change notification settings - Fork 5
/
.stylelintrc.js
160 lines (148 loc) · 4.14 KB
/
.stylelintrc.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
/* eslint-disable @typescript-eslint/no-require-imports */
const path = require('path');
module.exports = {
configBasedir: path.resolve(__dirname),
defaultSeverity: 'error',
extends: [
'stylelint-config-recommended',
'stylelint-config-sass-guidelines',
],
plugins: [
'stylelint-no-unsupported-browser-features',
'stylelint-order',
],
rules: {
'max-nesting-depth': 4,
'order/order': [
'custom-properties',
'declarations',
],
'order/properties-alphabetical-order': true,
'plugin/no-unsupported-browser-features': [
true,
{
ignore: [
/**
* Partial support - IE11
*
* Partial support in IE11 refers to calc not working properly
* with various use cases mentioned in known issues
*
* https://caniuse.com/calc
*/
'calc',
/**
* Not supported - IE 11
* Partial support - Safari
*
* https://caniuse.com/?search=appearance
*/
'css-appearance',
/**
* Not supported - IE11
*
* https://caniuse.com/?search=css-featurequeries
*/
'css-featurequeries',
/**
* Not supported - IE11
*
* https://caniuse.com/?search=css%20filters
*/
'css-filters',
/**
* Partial support - Safari
*
* Partial support in Safari and Older Firefox versions refers to
* not using premultiplied colors which results in unexpected
* behavior when using the transparent keyword as advised by the
* spec.
*
* https://caniuse.com/?search=css-gradients
*/
'css-gradients',
/**
* Not supported - IE11
*
* https://caniuse.com/?search=css-initial-value
*/
'css-initial-value',
/**
* Not supported - IE11
*
* Partial support - Chromium
*
* Supported on th elements, but not thead or tr
*
* Partial support - Firefox
*
* Not supported on any table parts
*
* https://caniuse.com/?search=css-sticky
*/
'css-sticky',
/**
* Partial support - IE11
*
* Partial support is due to large amount of bugs present.
*
* https://caniuse.com/?search=flexbox
*/
'flexbox',
/**
* Partial support - Chromium, Firefox
*
* Partial support refers to not supporting the avoid-column,
* column, and avoid (in the column context) values for the
* properties break-before, break-after, and break-inside.
*
* https://caniuse.com/?search=multicolumn
*/
'multicolumn',
/**
* Partial support - IE11
*
* Supports the value of invert for outline-color.
* Does not support outline-offset.
*
* https://caniuse.com/?search=outline
*/
'outline',
/**
* Partial support - IE11
*
* Partial support in IE refers to not supporting the
* `transform-style: preserve-3d` property. This prevents nesting 3D
* transformed elements.
*
* https://caniuse.com/?search=transforms3d
*/
'transforms3d',
/**
* Partial support - IE11
*
* Partial support refers to not supporting the "vmax" unit.
*
* https://caniuse.com/viewport-units
*/
'viewport-units',
],
},
],
'selector-class-pattern': [
'[a-z]([a-zA-Z0-9]+)?$',
{
resolveNestedSelectors: true,
},
],
'selector-max-compound-selectors': 5,
'selector-pseudo-class-no-unknown': [
true,
{
ignorePseudoClasses: [
'global',
],
},
],
},
};