This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.cjs
57 lines (54 loc) · 1.75 KB
/
.stylelintrc.cjs
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
const { interaction } = require("stylelint-config-clean-order/src/groups/interaction");
const { positioning } = require("stylelint-config-clean-order/src/groups/positioning");
const { layout } = require("stylelint-config-clean-order/src/groups/layout");
const { boxModel } = require("stylelint-config-clean-order/src/groups/box-model");
const { typography } = require("stylelint-config-clean-order/src/groups/typography");
const { apperance } = require("stylelint-config-clean-order/src/groups/apperance");
const { svgPresentation } = require("stylelint-config-clean-order/src/groups/svg-presentation");
const { transition } = require("stylelint-config-clean-order/src/groups/transition");
const propertyGroups = [
["all"],
interaction,
positioning,
layout,
boxModel,
typography,
apperance,
svgPresentation,
transition
];
const propertiesOrder = propertyGroups.map((properties) => ({
noEmptyLineBetween: true,
emptyLineBefore: "never", // Don't add empty lines between order groups.
properties
}));
module.exports = {
"extends": [
"stylelint-config-standard",
"stylelint-config-sass-guidelines",
"stylelint-config-clean-order"
],
"rules": {
"max-nesting-depth": 3,
"at-rule-empty-line-before": [
"always",
{
ignore: [
"first-nested",
"blockless-after-same-name-blockless",
"after-comment"
],
ignoreAtRules: ["else"]
}
],
"order/properties-order": [propertiesOrder, { severity: "warning", unspecified: "bottomAlphabetical" }],
"scss/at-rule-no-unknown": null,
"selector-no-qualifying-type": null,
"media-query-no-invalid": null,
"block-closing-brace-newline-after": [
"always", {
ignoreAtRules: ["if", "else"]
}
]
}
};