forked from fabric8-ui/fabric8-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.stylelintrc
124 lines (124 loc) · 4.64 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"rules": {
"block-closing-brace-empty-line-before": "never",
"block-closing-brace-newline-after": "always",
"block-closing-brace-newline-before": "always-multi-line",
"block-no-empty": true,
"block-opening-brace-newline-after": "always-multi-line",
"block-opening-brace-space-before": "always",
"color-hex-case": ["lower", {
"message": "Use lowercase hex codes for better readability."
}],
"color-hex-length": ["short", {
"message": "Use shorthand hex codes when possible"
}],
"color-named": ["never", {
"message": "Please use a PatternFly variable or hex value for color declarations."
}],
"color-no-invalid-hex": [true, {
"message": "You must use a valid hex code.",
"severity": "error"
}],
"comment-empty-line-before": [ "always", {
"ignore": ["stylelint-commands", "after-comment"]
} ],
"comment-no-empty": true,
"comment-whitespace-inside": "always",
"declaration-block-no-duplicate-properties": [true, {
"ignore": ["consecutive-duplicates-with-different-values"]
}],
"declaration-block-semicolon-newline-before": "never-multi-line",
"declaration-block-semicolon-newline-after": "always-multi-line",
"declaration-block-semicolon-space-before": "never",
"declaration-block-semicolon-space-after": "always-single-line",
"declaration-block-single-line-max-declarations": [1, {
"message": "More than one declaration requires multiple lines.",
"severity": "warning"
}],
"declaration-block-trailing-semicolon": "always",
"declaration-no-important": [true, {
"message": "If this is necessary, you must get approval for a line item exclusion.",
"severity": "error"
}],
"font-family-name-quotes": "always-where-recommended",
"font-family-no-duplicate-names": true,
"function-calc-no-unspaced-operator": true,
"function-comma-space-after": "always-single-line",
"function-comma-space-before": "never",
"function-name-case": "lower",
"function-parentheses-newline-inside": "never-multi-line",
"function-url-quotes": "always",
"function-whitespace-after": "always",
"indentation": [ 2, {
"ignore": ["inside-parens", "param", "value"],
"message": "Please use 2 spaces for indentation. Tabs make The Framework grumpy.",
"severity": "warning"
} ],
"length-zero-no-unit": true,
"keyframe-declaration-no-important": true,
"media-feature-name-no-unknown": true,
"no-duplicate-at-import-rules": [true, {
"message": "You cannot import the same thing twice."
}],
"no-eol-whitespace": true,
"no-extra-semicolons": [true, {
"message": "You have extra semicolons - please remove them.",
"severity": "error"
}],
"no-invalid-double-slash-comments": [true, {
"message": "Double Slash `//` comments are not supported by CSS."
}],
"no-unknown-animations": true,
"number-leading-zero": ["never", {
"message": "Do not add zeros before a number.",
"severity": "error"
}],
"number-max-precision": 3,
"number-no-trailing-zeros": null,
"property-case": "lower",
"rule-empty-line-before": ["always", {
"except": ["after-single-line-comment",
"inside-block-and-after-rule",
"inside-block",
"first-nested"],
"ignore": ["after-comment"]
}],
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-descendant-combinator-no-non-space": true,
"selector-list-comma-newline-after": "always-multi-line",
"selector-list-comma-newline-before": "never-multi-line",
"selector-list-comma-space-after": "never-single-line",
"selector-list-comma-space-before": "never",
"selector-pseudo-class-case": "lower",
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-pseudo-element-case": "lower",
"selector-pseudo-element-colon-notation": "single",
"selector-pseudo-element-no-unknown": true,
"selector-type-case": "lower",
"shorthand-property-no-redundant-values": true,
"string-no-newline": true,
"string-quotes": "single",
"unit-case": "lower",
"unit-no-unknown": true,
"unit-whitelist": [
"px",
"%",
"deg",
"s",
"ms",
"em",
"rem",
"vh",
"vw",
"fr"
],
"value-list-comma-space-after": "always-single-line",
"value-list-comma-space-before": "never",
"value-no-vendor-prefix": [true, {
"message": "You should use an autoprefixer to add vendor prefixes.",
"severity": "warning"
}]
}
}