-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylelint-config-woda.js
61 lines (56 loc) · 1.59 KB
/
stylelint-config-woda.js
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
// Copyright (c) 2020 Woda <[email protected]>
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
"use strict";
module.exports = {
extends: [
"stylelint-config-standard",
],
plugins: [
"stylelint-order",
],
rules: {
"at-rule-empty-line-before": [
"always",
{
except: ["blockless-after-same-name-blockless", "first-nested"],
ignore: ["after-comment", "blockless-after-same-name-blockless"],
// allow @else to come on same line as closing @if brace
ignoreAtRules: ["import", "else"],
}
],
"at-rule-no-unknown": null,
"at-rule-no-vendor-prefix": true,
"declaration-empty-line-before": null,
"declaration-property-value-disallowed-list": {
border: ["none"],
"border-top": ["none"],
"border-right": ["none"],
"border-bottom": ["none"],
"border-left": ["none"]
},
"number-max-precision": 8,
"selector-attribute-quotes": "always",
"selector-class-pattern": null,
"selector-id-pattern": null,
"selector-pseudo-class-no-unknown": [
true,
{
// :global is used by css modules
"ignorePseudoClasses": ["global"]
}
],
"unit-disallowed-list": ["pt"],
// order is defined in a separate file for legibility
"order/order": [
require("./config/order.js"),
{ unspecified: "ignore" }
],
// property order is defined in a separate file for legibility
"order/properties-order": [
require("./config/property-order.js"),
{ unspecified: "bottomAlphabetical" }
],
},
};