-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstylelint.config.js
72 lines (72 loc) · 1.97 KB
/
stylelint.config.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
module.exports = {
ignoreFiles: ["node_modules", ".nuxt", "dist"],
rules: {
"color-no-invalid-hex": true,
"font-family-no-duplicate-names": true,
"function-calc-no-invalid": true,
"unit-no-unknown": true,
"property-no-unknown": true,
"declaration-block-no-duplicate-properties": [
true,
{
ignore: ["consecutive-duplicates-with-different-values"],
},
],
"declaration-block-no-shorthand-property-overrides": true,
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-element-no-unknown": [
true,
{
ignorePseudoElements: ["/^v-/"],
},
],
"selector-type-no-unknown": true,
"media-feature-name-no-unknown": true,
"no-duplicate-at-import-rules": true,
"no-duplicate-selectors": true,
"no-extra-semicolons": true,
"shorthand-property-no-redundant-values": true,
"declaration-no-important": true,
"declaration-block-single-line-max-declarations": 1,
"max-nesting-depth": [
5,
{
severity: "warning",
ignore: [
"blockless-at-rules",
"pseudo-classes",
],
},
],
"color-hex-case": "lower",
"color-hex-length": "short",
"font-weight-notation": "numeric",
"function-url-quotes": "always",
"number-leading-zero": "always",
"number-no-trailing-zeros": true,
"string-quotes": "double",
"length-zero-no-unit": true,
"unit-case": "lower",
"value-keyword-case": "lower",
"property-case": "lower",
"declaration-bang-space-after": "never",
"declaration-bang-space-before": "always",
"declaration-colon-space-after": "always-single-line",
"declaration-colon-space-before": "never",
"block-opening-brace-space-before": "always",
indentation: [
2,
{
baseIndentLevel: 1,
},
],
linebreaks: "unix",
"max-empty-lines": [
2,
{
ignore: ["comments"],
},
],
"no-missing-end-of-source-newline": true,
},
};