forked from gitter-badger/sky-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc
executable file
·64 lines (64 loc) · 1.9 KB
/
.stylelintrc
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
{
"plugins": [
"stylelint-declaration-use-variable",
"stylelint-scss",
"stylelint-order"
],
"extends": [
"stylelint-config-standard",
"stylelint-config-sass-guidelines"
],
"rules": {
"sh-waqar/declaration-use-variable": ["background-color", "color", "font-size", "font-family"],
"scss/at-import-partial-extension-blacklist": ["less"],
"at-rule-blacklist": ["debug"],
"at-rule-no-vendor-prefix": true,
"block-no-empty": true,
"block-opening-brace-space-before": "always",
"color-hex-length": "short",
"selector-class-pattern": "^(?:(?:o|c|u|t|s|is|has|_|js|qa)-)?[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*(?:__[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:--[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*)?(?:\\[.+\\])?$",
"rule-nested-empty-line-before": "never",
"max-nesting-depth": 3,
"declaration-block-trailing-semicolon": ["always", {
"severity": "error"
}],
"max-empty-lines": [2, {
"message": "Please don't let to much space between declarations."
}],
"unit-whitelist": ["px", "em", "rem", "%", "s", "deg"],
"value-no-vendor-prefix": true,
"selector-no-id": true,
"no-extra-semicolons": true,
"color-hex-case": ["lower", {
"severity": "warning",
"message": "Lowercase letters are easier to distinguish from numbers"
}],
"selector-no-qualifying-type": [true, {
"ignore": ["attribute"]
}],
"order/declaration-block-property-groups-structure": [
{
"emptyLineBefore": "always",
"order": "strict",
"properties": [
"display"
]
},
{
"emptyLineBefore": "always",
"order": "strict",
"properties": [
"position"
]
},
{
"emptyLineBefore": "always",
"order": "flexible",
"properties": [
"border-bottom",
"font-style"
]
}
]
}
}