-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc.json
100 lines (100 loc) · 2.45 KB
/
.stylelintrc.json
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"extends": [
"stylelint-config-rational-order",
"stylelint-config-standard-scss"
],
"plugins": [
"stylelint-config-rational-order/plugin",
"stylelint-scss",
"stylelint-selector-bem-pattern",
"stylelint-order"
],
"rules": {
"at-rule-no-unknown": [true, {
"ignoreAtRules": [
"/^at-/",
"/^use/",
"/^mixin/",
"/^extend/",
"/^include/",
"/^if/",
"/^else/",
"/^function/",
"/^return/",
"/^each/",
"/^while/"
]
}],
"comment-word-disallowed-list": [
["/((Х|х)+уй|(Х|х)уе|(Х|х)уё|(Б|б)ляд|(М|м)уда|(П|п)идо|(П|п)еди|(П|п)еде|(^|)+(Б|б)ля)/"],
{
"message": "Комментарий оскорбительный при себе оставь"
}
],
"function-no-unknown": null,
"import-notation": "string",
"media-query-no-invalid": null,
"order/order": [
"dollar-variables",
"custom-properties",
{
"type": "at-rule",
"name": "include"
},
"declarations",
{
"type": "at-rule",
"name": "media"
},
{
"type": "rule",
"selector": "^&:\\w+$"
},
{
"type": "rule",
"selector": "^&--[-a-z0-9]+"
},
{
"type": "rule",
"selector": "^\\.[-_a-zA-Z0-9]+"
},
{
"type": "rule",
"selector": "^&__[-a-z0-9]+"
}
],
"plugin/selector-bem-pattern": [
{
"implicitComponents": true,
"componentName": "[-a-z]+",
"componentSelectors": {
"initial": "^(\\.{componentName}(__[a-z]+|--[-a-z0-9]+|__[-a-z]+--[-a-z0-9]+|.[-a-z]+|__[a-z]+.[-a-z]+)?)$",
"combined": "^.+$"
},
"ignoreSelectors": [
"^\\.(no-)?js(-modal-open)?$",
"a(\\[[a-z]+|:[a-z]+)?",
"h[1-6]",
"pre",
"blockquote",
"thead",
"tr",
"img",
"p",
"table",
"^&:empty",
"#{\\$[-a-z]+}__[-a-z]+",
"^\\*$"
]
},
{
"severity": "warning",
"message": "Селектор не из имени файла или БЭМ-ошибка"
}
],
"property-no-vendor-prefix": null,
"scss/comment-no-empty": null,
"scss/double-slash-comment-empty-line-before": null,
"scss/double-slash-comment-whitespace-inside": null
}
}