-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylelint.config.js
69 lines (69 loc) · 1.59 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
69
module.exports = {
extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
plugins: [
'stylelint-scss',
'stylelint-order',
'stylelint-config-rational-order/plugin',
],
rules: {
'scss/at-import-partial-extension': 'always',
'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,
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': true,
'selector-pseudo-element-no-unknown': [
true,
{
ignorePseudoElements: ['v-deep'],
},
],
'font-family-no-missing-generic-family-keyword': [
true,
{
ignoreFontFamilies: ['Roboto-BoldCondensedItalic', 'icomoon', 'Roboto'],
},
],
},
}