@d-zero/stylelint-config 5.0.0-dev.89 → 5.0.0-dev.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.stylelintrc.json +3 -184
- package/package.json +6 -2
package/.stylelintrc.json
CHANGED
|
@@ -1,156 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": ["
|
|
2
|
+
"extends": ["./stylelintrc.base.json"],
|
|
3
3
|
"ignoreFiles": [
|
|
4
4
|
"__assets/**/*.{js,jsx,ts,tsx,html,pug}",
|
|
5
5
|
"__assets/css/_syntax-rules.scss",
|
|
6
6
|
"htdocs/**/*",
|
|
7
7
|
"docs/**/*.md"
|
|
8
8
|
],
|
|
9
|
-
"plugins": ["stylelint-scss", "stylelint-order"],
|
|
10
9
|
"rules": {
|
|
11
|
-
"order/order": [
|
|
12
|
-
"dollar-variables",
|
|
13
|
-
"custom-properties",
|
|
14
|
-
{
|
|
15
|
-
"type": "at-rule",
|
|
16
|
-
"name": "custom-media"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"type": "at-rule",
|
|
20
|
-
"name": "extend"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"type": "at-rule",
|
|
24
|
-
"name": "mixin"
|
|
25
|
-
},
|
|
26
|
-
"declarations",
|
|
27
|
-
{
|
|
28
|
-
"type": "at-rule",
|
|
29
|
-
"name": "supports"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"type": "at-rule",
|
|
33
|
-
"name": "media",
|
|
34
|
-
"hasBlock": true
|
|
35
|
-
},
|
|
36
|
-
"rules"
|
|
37
|
-
],
|
|
38
10
|
"scss/dollar-variable-pattern": "^(?:[a-z]{2,}-[a-z0-9-]+|_[a-z][a-z0-9]*(?:-[a-z0-9]+)*)$",
|
|
39
11
|
"scss/percent-placeholder-pattern": "^[a-z]{2,}(-[a-z0-9-]+)?$",
|
|
40
|
-
"at-rule-disallowed-list": null,
|
|
41
|
-
"at-rule-empty-line-before": [
|
|
42
|
-
"always",
|
|
43
|
-
{
|
|
44
|
-
"except": ["blockless-after-same-name-blockless", "first-nested"],
|
|
45
|
-
"ignore": ["after-comment"]
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"at-rule-no-vendor-prefix": true,
|
|
49
|
-
"at-rule-no-unknown": [
|
|
50
|
-
true,
|
|
51
|
-
{
|
|
52
|
-
"ignoreAtRules": ["mixin", "extend", "for", "if", "include", "use", "forward"]
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
"color-hex-length": "short",
|
|
56
|
-
"color-named": "never",
|
|
57
|
-
"color-no-invalid-hex": true,
|
|
58
|
-
"comment-empty-line-before": [
|
|
59
|
-
"always",
|
|
60
|
-
{
|
|
61
|
-
"ignore": ["stylelint-commands"]
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
"comment-no-empty": true,
|
|
65
|
-
"comment-whitespace-inside": "always",
|
|
66
|
-
"comment-word-disallowed-list": ["/^TODO:/"],
|
|
67
12
|
"custom-media-pattern": "[a-z][a-z-]*",
|
|
68
|
-
"custom-property-empty-line-before": "never",
|
|
69
13
|
"custom-property-pattern": "[a-z][a-z-]*",
|
|
70
|
-
"declaration-block-no-duplicate-properties": true,
|
|
71
|
-
"declaration-block-no-redundant-longhand-properties": [
|
|
72
|
-
true,
|
|
73
|
-
{
|
|
74
|
-
"ignoreShorthands": ["flex", "grid-template"]
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
"declaration-block-no-shorthand-property-overrides": true,
|
|
78
|
-
"declaration-block-single-line-max-declarations": 80,
|
|
79
|
-
"declaration-empty-line-before": "never",
|
|
80
|
-
"declaration-no-important": true,
|
|
81
|
-
"declaration-property-value-disallowed-list": {
|
|
82
|
-
"/^(?:color|background|background-color|border|border-color|outline|outline-color)$/": [
|
|
83
|
-
"/#[0-9a-f]{3}/",
|
|
84
|
-
"/(?:rgb|hsl)a?\\(.+?\\)/"
|
|
85
|
-
],
|
|
86
|
-
"content": ["/^\\\"\\\\[0-9a-fA-F]{1,6}\\\"$/"],
|
|
87
|
-
"flex": ["/calc/"],
|
|
88
|
-
"/^(?:max-|min-)?(?:width|height)|^flex/": [
|
|
89
|
-
"/[1-9]*\\.[0-9]+(?:%|vw|vh)/",
|
|
90
|
-
"/(?:^|[^0-9])[0-9](?:%|vw|vh)/",
|
|
91
|
-
"/(?:^|[^0-9])[0-9]{2}(?:%|vw|vh)/",
|
|
92
|
-
"/1[0-9][1-9](?:%|vw|vh)/",
|
|
93
|
-
"/1[1-9][0-9](?:%|vw|vh)/",
|
|
94
|
-
"/[2-9][0-9][0-9](?:%|vw|vh)/",
|
|
95
|
-
"/[0-9]{4,}(?:%|vw|vh)/"
|
|
96
|
-
]
|
|
97
|
-
},
|
|
98
|
-
"declaration-property-value-allowed-list": {
|
|
99
|
-
"font-size": [
|
|
100
|
-
"inherit",
|
|
101
|
-
"$root-font-size",
|
|
102
|
-
"$base-font-size",
|
|
103
|
-
"1em",
|
|
104
|
-
"/^calc\\((?:\\$[a-z_][a-z0-9_-]*|(?:[0-9]*\\.)?[0-9]+) \\/ (?:\\$[a-z_][a-z0-9_-]*|(?:[0-9]*\\.)?[0-9]+) \\* (?:1em|100vw)\\)$/",
|
|
105
|
-
"/^(?:[0-9]*\\.)?[0-9]+rem/",
|
|
106
|
-
"/^clamp\\(/"
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
"font-family-name-quotes": "always-where-required",
|
|
110
|
-
"font-family-no-duplicate-names": true,
|
|
111
|
-
"font-weight-notation": "named-where-possible",
|
|
112
|
-
"function-disallowed-list": null,
|
|
113
|
-
"function-calc-no-unspaced-operator": true,
|
|
114
|
-
"function-linear-gradient-no-nonstandard-direction": true,
|
|
115
|
-
"function-name-case": "lower",
|
|
116
|
-
"function-no-unknown": [
|
|
117
|
-
true,
|
|
118
|
-
{
|
|
119
|
-
"ignoreFunctions": ["a", "lighten", "darken", "resolve"]
|
|
120
|
-
}
|
|
121
|
-
],
|
|
122
|
-
"function-url-scheme-allowed-list": null,
|
|
123
|
-
"function-url-no-scheme-relative": true,
|
|
124
|
-
"function-url-quotes": "always",
|
|
125
|
-
"keyframe-declaration-no-important": true,
|
|
126
|
-
"length-zero-no-unit": true,
|
|
127
|
-
"max-nesting-depth": 8,
|
|
128
|
-
"media-feature-name-no-unknown": true,
|
|
129
|
-
"media-feature-name-no-vendor-prefix": true,
|
|
130
|
-
"no-duplicate-selectors": true,
|
|
131
|
-
"no-descending-specificity": null,
|
|
132
|
-
"no-empty-source": true,
|
|
133
|
-
"no-invalid-double-slash-comments": true,
|
|
134
|
-
"no-unknown-animations": true,
|
|
135
|
-
"number-max-precision": 4,
|
|
136
|
-
"property-disallowed-list": null,
|
|
137
|
-
"property-no-unknown": true,
|
|
138
|
-
"property-no-vendor-prefix": [
|
|
139
|
-
true,
|
|
140
|
-
{
|
|
141
|
-
"severity": "warning",
|
|
142
|
-
"message": "Autoprefixerを利用するのでベンダープレフィックスは不要です"
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
"rule-empty-line-before": [
|
|
146
|
-
"always-multi-line",
|
|
147
|
-
{
|
|
148
|
-
"except": ["after-single-line-comment", "first-nested"],
|
|
149
|
-
"ignore": ["after-comment"]
|
|
150
|
-
}
|
|
151
|
-
],
|
|
152
|
-
"selector-attribute-operator-disallowed-list": null,
|
|
153
|
-
"selector-attribute-quotes": "always",
|
|
154
14
|
"selector-class-pattern": [
|
|
155
15
|
"^c-[a-z][a-z0-9]*(?:-[a-z0-9]+)*(?:__[a-z0-9]+(?:-[a-z0-9]+)*)?$",
|
|
156
16
|
{
|
|
@@ -158,47 +18,6 @@
|
|
|
158
18
|
}
|
|
159
19
|
],
|
|
160
20
|
"selector-id-pattern": "^$",
|
|
161
|
-
"selector-
|
|
162
|
-
|
|
163
|
-
"selector-nested-pattern": "^[^.]+.*",
|
|
164
|
-
"selector-max-id": 0,
|
|
165
|
-
"selector-max-universal": 1,
|
|
166
|
-
"selector-no-vendor-prefix": true,
|
|
167
|
-
"selector-pseudo-class-disallowed-list": ["link"],
|
|
168
|
-
"selector-pseudo-element-colon-notation": "double",
|
|
169
|
-
"selector-type-case": "lower",
|
|
170
|
-
"selector-type-no-unknown": true,
|
|
171
|
-
"shorthand-property-no-redundant-values": null,
|
|
172
|
-
"string-no-newline": true,
|
|
173
|
-
"time-min-milliseconds": 100,
|
|
174
|
-
"unit-disallowed-list": [
|
|
175
|
-
"ex",
|
|
176
|
-
"ch",
|
|
177
|
-
"mm",
|
|
178
|
-
"q",
|
|
179
|
-
"cm",
|
|
180
|
-
"in",
|
|
181
|
-
"pt",
|
|
182
|
-
"pc",
|
|
183
|
-
"vm",
|
|
184
|
-
"s",
|
|
185
|
-
"grad",
|
|
186
|
-
"rad",
|
|
187
|
-
"turn"
|
|
188
|
-
],
|
|
189
|
-
"unit-no-unknown": true,
|
|
190
|
-
"value-keyword-case": [
|
|
191
|
-
"lower",
|
|
192
|
-
{
|
|
193
|
-
"ignoreProperties": ["/^\\$font-family-/"]
|
|
194
|
-
}
|
|
195
|
-
],
|
|
196
|
-
"value-no-vendor-prefix": true
|
|
197
|
-
},
|
|
198
|
-
"overrides": [
|
|
199
|
-
{
|
|
200
|
-
"files": ["__assets/**/*.scss"],
|
|
201
|
-
"customSyntax": "postcss-scss"
|
|
202
|
-
}
|
|
203
|
-
]
|
|
21
|
+
"selector-nested-pattern": "^[^.]+.*"
|
|
22
|
+
}
|
|
204
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/stylelint-config",
|
|
3
|
-
"version": "5.0.0-dev.
|
|
3
|
+
"version": "5.0.0-dev.90+e25aaa4",
|
|
4
4
|
"description": "Configurations of Stylelint",
|
|
5
5
|
"repository": "https://github.com/d-zero-dev/node-dev-env.git",
|
|
6
6
|
"author": "D-ZERO Co., Ltd.",
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
"files": [
|
|
13
13
|
".stylelintrc.json"
|
|
14
14
|
],
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./.stylelintrc.json",
|
|
17
|
+
"./base": "./.stylelintrc.base.json"
|
|
18
|
+
},
|
|
15
19
|
"main": ".stylelintrc.json",
|
|
16
20
|
"dependencies": {
|
|
17
21
|
"stylelint": "16.1.0",
|
|
@@ -20,5 +24,5 @@
|
|
|
20
24
|
"stylelint-order": "6.0.4",
|
|
21
25
|
"stylelint-scss": "6.0.0"
|
|
22
26
|
},
|
|
23
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "e25aaa4561d8d66f839bf3e007cb6c620ef2d115"
|
|
24
28
|
}
|