-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathstylelint.config.js
More file actions
30 lines (29 loc) · 1.01 KB
/
stylelint.config.js
File metadata and controls
30 lines (29 loc) · 1.01 KB
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
// @ts-expect-error
import propertyGroups from "stylelint-config-recess-order/groups";
/** @type {import('stylelint').Config} */
export default {
extends: ["stylelint-config-standard", "stylelint-config-recess-order"],
rules: {
"color-hex-length": "long",
"custom-property-empty-line-before": null,
"custom-property-pattern": "^([a-z][a-z0-9]*)(-[a-z0-9]+)*(--default)?$",
"declaration-block-no-redundant-longhand-properties": null,
"declaration-empty-line-before": null,
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"order/properties-order": [
propertyGroups.map((/** @type {any} */ group) => ({
...group,
emptyLineBefore: "threshold",
noEmptyLineBetween: true,
})),
{
emptyLineMinimumPropertyThreshold: 4,
},
],
"selector-class-pattern": null,
"selector-id-pattern": null,
"font-family-name-quotes": "always-unless-keyword",
"at-rule-no-unknown": [true, { ignoreAtRules: ["mixin"] }],
},
};