-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
129 lines (116 loc) · 3.19 KB
/
index.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
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
125
126
127
128
129
module.exports = {
overrides: [
{
"files": ["*.vue"],
"customSyntax": "postcss-html"
}
],
extends: [
"stylelint-config-standard-scss",
"@stylistic/stylelint-config"
],
plugins: [
"./rules/at-rule-conditional-parentheses",
"./rules/filename-class-match",
"./rules/rule-empty-line-before",
"./rules/selector-class-interpolation",
"stylelint-order"
],
rules: {
// General rules
"alpha-value-notation": "number",
"at-rule-empty-line-before": [
"always",
{
"except": ["blockless-after-same-name-blockless", "first-nested"],
"ignore": ["after-comment", "blockless-after-blockless"],
"ignoreAtRules": ["else"]
}
],
"block-no-empty": true,
"color-function-notation": "legacy",
"color-hex-length": "long",
"color-no-invalid-hex": true,
"declaration-block-no-redundant-longhand-properties": [
true,
{
"ignoreShorthands": [
"inset",
"overflow",
"place-self"
]
}
],
"declaration-block-single-line-max-declarations": 1,
"declaration-property-value-disallowed-list": {
"border": ["none"],
"border-top": ["none"],
"border-right": ["none"],
"border-bottom": ["none"],
"border-left": ["none"],
"outline": ["none"]
},
"keyframe-block-no-duplicate-selectors": null,
"media-feature-range-notation": "prefix",
"no-descending-specificity": null,
"number-max-precision": 5,
"rule-empty-line-before": [
"always-multi-line",
{
"except": ["first-nested"],
"ignore": ["after-comment"]
}
],
"selector-class-pattern": null,
"selector-not-notation": "simple",
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": [
"export"
]
}
],
"selector-pseudo-element-colon-notation": "single",
// SCSS rules
"scss/at-rule-conditional-no-parentheses": null,
"scss/dollar-variable-empty-line-before": null,
"scss/load-no-partial-leading-underscore": null,
"scss/map-keys-quotes": "always",
"scss/no-global-function-names": null,
"scss/operator-no-newline-after": null,
// Stylistic rules
"@stylistic/block-closing-brace-newline-after": [
"always",
{
"ignoreAtRules": ["if", "else"]
}
],
"@stylistic/color-hex-case": "lower",
"@stylistic/declaration-colon-newline-after": null,
"@stylistic/declaration-block-trailing-semicolon": "always",
"@stylistic/indentation": [
2,
{
"ignore": ["inside-parens"]
}
],
"@stylistic/number-leading-zero": "always",
"@stylistic/property-case": "lower",
"@stylistic/selector-pseudo-class-case": "lower",
"@stylistic/selector-pseudo-element-case": "lower",
"@stylistic/string-quotes": "double",
"@stylistic/unit-case": "lower",
// Order rules
"order/order": [
"dollar-variables",
"declarations",
"rules"
],
// Crisp rules
"crisp/at-rule-conditional-parentheses": true,
"crisp/filename-class-match": true,
"crisp/rule-empty-line-before": true,
"crisp/selector-class-interpolation": true
}
}