-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.js
43 lines (43 loc) · 1.2 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
module.exports = {
customSyntax: '@stylelint/postcss-css-in-js',
extends: [
'stylelint-config-recommended',
'stylelint-a11y/recommended',
'stylelint-config-rational-order',
],
plugins: [
'stylelint-order',
'stylelint-use-logical',
'stylelint-a11y',
'stylelint-config-rational-order/plugin',
],
rules: {
'order/order': [],
'plugin/rational-order': [
true,
{
'border-in-box-model': false,
},
],
'csstools/use-logical': true,
'unit-disallowed-list': [
['px'],
{
ignoreProperties: {
px: ['/^border/', 'box-shadow', 'clip'],
},
severity: 'warning',
},
],
// Styled components conditional blocks are not supported in css in js stylelint's implementation, and it throws false positives
'no-duplicate-selectors': null,
// To allow the use of util functions like addAlpha
'function-no-unknown': null,
// Deactivate because stylelint does not understand styles scope inside a switch case
'no-descending-specificity': null,
// Deactivate to allow empty SC
'no-empty-source': null,
// Disallow units for zero lengths
'length-zero-no-unit': true,
},
};