-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.js
32 lines (32 loc) · 1.03 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
module.exports = {
cache: true,
reportDescriptionlessDisables: true,
reportInvalidScopeDisables: false,
reportNeedlessDisables: true,
extends: ['stylelint-config-standard'],
customSyntax: 'postcss-styled-syntax',
rules: {
'declaration-no-important': true,
'declaration-block-no-shorthand-property-overrides': true,
'length-zero-no-unit': true,
'color-named': 'never',
'font-weight-notation': 'numeric',
'color-no-invalid-hex': true,
'selector-disallowed-list': [
'/(\\.|#)+(?!shortcut-).*$/',
],
'no-irregular-whitespace': true,
'declaration-property-unit-disallowed-list': [
{
'font-size': ['px', 'em', 'rem', '%'],
'border-radius': ['px', 'em', 'rem', '%'],
},
],
'declaration-property-value-disallowed-list': [
{
'/color|background-color|border-color|fill|stroke/': ['/^#/', '/^rbg/', '/^rgba/'],
'/border|background/': ['/#/', '/rbg/', '/rgba/'],
},
],
},
};