-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc
35 lines (35 loc) · 1.25 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
{
"plugins": [
"stylelint-declaration-use-variable"
],
"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"
}]
}
}