Skip to content

Commit 44d4916

Browse files
Sorts the rules (#128)
1 parent 7711112 commit 44d4916

File tree

1 file changed

+94
-74
lines changed

1 file changed

+94
-74
lines changed

.stylelintrc

Lines changed: 94 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -49,55 +49,57 @@
4949
"@stylistic/stylelint-plugin"
5050
],
5151
"rules": {
52-
"annotation-no-unknown": true,
53-
"at-rule-empty-line-before": [
54-
"always",
55-
{
56-
"except": [
57-
"first-nested",
58-
"blockless-after-blockless"
59-
],
60-
"ignore": [
61-
"after-comment"
62-
]
63-
}
64-
],
65-
"at-rule-no-unknown": true,
66-
"at-rule-no-vendor-prefix": true,
67-
"block-no-empty": true,
68-
"color-function-notation": null,
69-
"color-hex-alpha": "never",
70-
"color-hex-length": "long",
71-
"color-named": "never",
72-
"color-no-invalid-hex": true,
73-
"comment-no-empty": true,
74-
"custom-property-no-missing-var-function": true,
52+
"no-descending-specificity": null,
53+
7554
"declaration-block-no-duplicate-custom-properties": true,
7655
"declaration-block-no-duplicate-properties": true,
77-
"declaration-block-no-shorthand-property-overrides": true,
78-
"declaration-no-important": true,
79-
"declaration-property-value-no-unknown": true,
80-
"font-family-name-quotes": "always-unless-keyword",
8156
"font-family-no-duplicate-names": true,
82-
"font-family-no-missing-generic-family-keyword": true,
83-
"font-weight-notation": [
84-
"numeric",
85-
{
86-
"ignore": [
87-
"relative"
88-
]
89-
}
90-
],
57+
"keyframe-block-no-duplicate-selectors": true,
58+
"no-duplicate-at-import-rules": true,
59+
"no-duplicate-selectors": true,
60+
61+
"block-no-empty": true,
62+
"comment-no-empty": true,
63+
"no-empty-source": true,
64+
65+
"color-no-invalid-hex": true,
9166
"function-calc-no-unspaced-operator": true,
67+
"declaration-no-important": true,
68+
"media-query-no-invalid": true,
69+
"named-grid-areas-no-invalid": true,
70+
"no-invalid-double-slash-comments": true,
71+
"no-invalid-position-at-import-rule": true,
72+
"string-no-newline": true,
73+
74+
"no-irregular-whitespace": true,
75+
76+
"custom-property-no-missing-var-function": true,
77+
"font-family-no-missing-generic-family-keyword": true,
78+
9279
"function-linear-gradient-no-nonstandard-direction": true,
93-
"function-name-case": "lower",
80+
81+
"declaration-block-no-shorthand-property-overrides": true,
82+
83+
"annotation-no-unknown": true,
84+
"at-rule-no-unknown": true,
85+
"declaration-property-value-no-unknown": true,
9486
"function-no-unknown": true,
95-
"function-url-quotes": "always",
96-
"import-notation": "string",
97-
"keyframe-block-no-duplicate-selectors": true,
87+
"media-feature-name-no-unknown": true,
88+
"media-feature-name-value-no-unknown": true,
89+
"property-no-unknown": true,
90+
"selector-pseudo-class-no-unknown": true,
91+
"selector-pseudo-element-no-unknown": true,
92+
"unit-no-unknown": true,
93+
"selector-type-no-unknown": true,
94+
95+
"at-rule-disallowed-list": null,
96+
"at-rule-no-vendor-prefix": true,
97+
98+
"color-hex-alpha": "never",
99+
"color-named": "never",
100+
98101
"keyframe-declaration-no-important": true,
99-
"media-query-no-invalid": true,
100-
"keyframe-selector-notation": "percentage-unless-within-keyword-only-block",
102+
101103
"length-zero-no-unit": [
102104
true,
103105
{
@@ -110,29 +112,34 @@
110112
]
111113
}
112114
],
113-
"max-nesting-depth": [
114-
2,
115+
116+
"media-feature-name-no-vendor-prefix": true,
117+
118+
"property-no-vendor-prefix": true,
119+
120+
"value-no-vendor-prefix": true,
121+
122+
"function-name-case": "lower",
123+
"selector-type-case": "lower",
124+
"value-keyword-case": [
125+
"lower",
115126
{
127+
"camelCaseSvgKeywords": true
128+
}
129+
],
130+
131+
"at-rule-empty-line-before": [
132+
"always",
133+
{
134+
"except": [
135+
"first-nested",
136+
"blockless-after-blockless"
137+
],
116138
"ignore": [
117-
"blockless-at-rules",
118-
"pseudo-classes"
139+
"after-comment"
119140
]
120141
}
121142
],
122-
"media-feature-name-no-unknown": true,
123-
"media-feature-name-value-no-unknown": true,
124-
"media-feature-name-no-vendor-prefix": true,
125-
"named-grid-areas-no-invalid": true,
126-
"no-descending-specificity": null,
127-
"no-duplicate-at-import-rules": true,
128-
"no-duplicate-selectors": true,
129-
"no-empty-source": true,
130-
"no-invalid-double-slash-comments": true,
131-
"no-invalid-position-at-import-rule": true,
132-
"no-irregular-whitespace": true,
133-
"number-max-precision": 2,
134-
"property-no-unknown": true,
135-
"property-no-vendor-prefix": true,
136143
"rule-empty-line-before": [
137144
"always",
138145
{
@@ -144,26 +151,39 @@
144151
]
145152
}
146153
],
147-
"selector-attribute-quotes": "always",
148-
"selector-max-compound-selectors": 3,
154+
155+
"max-nesting-depth": [
156+
2,
157+
{
158+
"ignore": [
159+
"blockless-at-rules",
160+
"pseudo-classes"
161+
]
162+
}
163+
],
164+
"number-max-precision": 2,
149165
"selector-max-id": 0,
150166
"selector-max-universal": 2,
151-
"selector-not-notation": "simple",
152-
"selector-pseudo-class-no-unknown": true,
153-
"selector-pseudo-element-colon-notation": "double",
154-
"selector-pseudo-element-no-unknown": true,
155-
"selector-type-case": "lower",
156-
"selector-type-no-unknown": true,
157-
"string-no-newline": true,
158-
"unit-no-unknown": true,
159-
"value-keyword-case": [
160-
"lower",
167+
168+
"color-function-notation": null,
169+
"color-hex-length": "long",
170+
"font-weight-notation": [
171+
"numeric",
161172
{
162-
"camelCaseSvgKeywords": true
173+
"ignore": [
174+
"relative"
175+
]
163176
}
164177
],
165-
"value-no-vendor-prefix": true,
178+
"hue-degree-notation": null,
179+
"import-notation": "string",
180+
"keyframe-selector-notation": "percentage-unless-within-keyword-only-block",
181+
"selector-not-notation": "simple",
182+
"selector-pseudo-element-colon-notation": "double",
166183

184+
"font-family-name-quotes": "always-unless-keyword",
185+
"function-url-quotes": "always",
186+
"selector-attribute-quotes": "always",
167187

168188
"@stylistic/at-rule-name-case": "lower",
169189
"@stylistic/at-rule-name-space-after": "always",

0 commit comments

Comments
 (0)