forked from marktext/muya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylelint.config.js
42 lines (42 loc) · 1.06 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
module.exports = {
extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
plugins: ['stylelint-order', 'stylelint-config-rational-order/plugin'],
rules: {
'order/properties-order': [[], { severity: 'warning' }],
// `standard` conflict with `rational-order`
'declaration-empty-line-before': [
'never',
{
except: ['after-comment', 'after-declaration', 'first-nested'],
ignore: [
'after-comment',
'after-declaration',
'first-nested',
'inside-single-line-block'
]
}
],
'plugin/rational-order': [
true,
{
'border-in-box-model': false,
'empty-line-between-groups': true,
severity: 'warning'
}
],
'unit-no-unknown': [
true,
{
ignoreUnits: ['rpx', 'upx']
}
],
'selector-type-no-unknown': [
true,
{
ignore: ['custom-elements'],
ignoreTypes: ['page', 'text', 'view', 'swiper', 'swiper-item', 'image', 'navigator']
}
],
'no-empty-source': null
}
}