-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylelint.config.js
68 lines (68 loc) · 1.91 KB
/
stylelint.config.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
module.exports = {
extends: ['stylelint-config-recommended', 'stylelint-config-prettier'],
plugins: [
'stylelint-declaration-strict-value',
'stylelint-high-performance-animation',
'stylelint-no-unsupported-browser-features',
'stylelint-use-nesting',
],
rules: {
'block-no-empty': true,
'color-hex-length': 'long',
'color-no-invalid-hex': true,
'csstools/use-nesting': true,
'no-descending-specificity': null,
'no-empty-source': null,
'declaration-block-trailing-semicolon': null,
'plugin/no-unsupported-browser-features': [
true,
{
browsers: require('./package.json').browserslist,
ignorePartialSupport: true,
ignore: [
'pointer',
'user-select-none',
'css-touch-action',
'word-break',
],
},
],
'plugin/no-low-performance-animation-properties': [
true,
{
ignoreProperties: ['visibility'],
},
],
'scale-unlimited/declaration-strict-value': [
['/color/', 'font-size'],
{
ignoreValues: ['inherit', 'transparent', 'currentColor'],
disableFix: true,
},
],
'selector-disallowed-list': [
/(?::?:after|:?:before|:?:first-letter|:?:first-line)[^,]+/,
// /::slotted\(.+\) .*/,
// /::slotted\(.+\):(?!:?after|:?before|:?first-letter|:?first-line)/,
// /::slotted\(.*(?::?:after|:?:before|:?:first-letter|:?:first-line|::slotted|:host).*\)/,
// /::slotted\([^,]+ [^,]+\)/,
// /::slotted\([^,]*[>+~][^,]+\)/,
// /:host\([^,]+ [^,]+\)/,
// /:host\([^,]*[>+~][^,]+\)/,
/([^, \n][ \n]*):host/,
],
'selector-no-qualifying-type': null,
'selector-type-no-unknown': [
true,
{
ignoreTypes: ['/^ld-/', '/^docs-/'],
},
],
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['/^define-mixin/', '/^mixin/'],
},
],
},
}