generator-reackt 0.3.3 → 0.6.0
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/.prettierrc +3 -3
- package/.stylelintrc +155 -71
- package/generators/app/index.js +392 -309
- package/generators/component/index.js +51 -56
- package/generators/module/index.js +127 -117
- package/generators/util/fs.js +34 -22
- package/package.json +63 -66
- package/templates/app/.babelrc +1 -6
- package/templates/app/.eslintrc.js +46 -185
- package/templates/app/.stylelintrc +57 -146
- package/templates/app/jsconfig.json +1 -2
- package/templates/app/src/components/{App/App.js → App.js} +1 -1
- package/templates/app/src/index.js +7 -13
- package/templates/app/src/index.scss +0 -1
- package/templates/app/webpack.config.babel.js +2 -8
- package/templates/app/src/icons.js +0 -4
package/.prettierrc
CHANGED
package/.stylelintrc
CHANGED
|
@@ -1,104 +1,188 @@
|
|
|
1
1
|
{
|
|
2
|
-
"defaultSeverity": "
|
|
2
|
+
"defaultSeverity": "warning",
|
|
3
|
+
"extends": "stylelint-config-recommended",
|
|
4
|
+
"customSyntax": "postcss-scss",
|
|
3
5
|
"rules": {
|
|
6
|
+
"at-rule-allowed-list": null,
|
|
7
|
+
"at-rule-disallowed-list": null,
|
|
4
8
|
"at-rule-empty-line-before": [
|
|
5
9
|
"always",
|
|
6
10
|
{
|
|
7
|
-
"except": [
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
"except": [
|
|
12
|
+
"blockless-after-blockless",
|
|
13
|
+
"first-nested"
|
|
14
|
+
],
|
|
15
|
+
"ignore": [
|
|
16
|
+
"after-comment"
|
|
17
|
+
],
|
|
18
|
+
"ignoreAtRules": [
|
|
19
|
+
"else"
|
|
20
|
+
]
|
|
10
21
|
}
|
|
11
22
|
],
|
|
12
|
-
"at-rule-
|
|
13
|
-
|
|
14
|
-
"at-rule-semicolon-newline-after": "always",
|
|
15
|
-
"at-rule-semicolon-space-before": "never",
|
|
16
|
-
"block-closing-brace-empty-line-before": "never",
|
|
17
|
-
"block-closing-brace-newline-after": [
|
|
18
|
-
"always",
|
|
23
|
+
"at-rule-no-unknown": [
|
|
24
|
+
true,
|
|
19
25
|
{
|
|
20
|
-
"ignoreAtRules": [
|
|
26
|
+
"ignoreAtRules": [
|
|
27
|
+
"each",
|
|
28
|
+
"content",
|
|
29
|
+
"else",
|
|
30
|
+
"extend",
|
|
31
|
+
"if",
|
|
32
|
+
"include",
|
|
33
|
+
"mixin",
|
|
34
|
+
"for",
|
|
35
|
+
"elseif",
|
|
36
|
+
"return",
|
|
37
|
+
"function"
|
|
38
|
+
]
|
|
21
39
|
}
|
|
22
40
|
],
|
|
23
|
-
"
|
|
24
|
-
"block-closing-brace-space-after": "always-single-line",
|
|
25
|
-
"block-closing-brace-space-before": "always-single-line",
|
|
41
|
+
"at-rule-no-vendor-prefix": true,
|
|
26
42
|
"block-no-empty": true,
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
43
|
+
"color-hex-length": "short",
|
|
44
|
+
"color-named": [
|
|
45
|
+
"never",
|
|
46
|
+
{
|
|
47
|
+
"severity": "error"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"color-no-hex": null,
|
|
51
|
+
"color-no-invalid-hex": true,
|
|
31
52
|
"comment-empty-line-before": [
|
|
32
53
|
"always",
|
|
33
54
|
{
|
|
34
|
-
"ignore": [
|
|
55
|
+
"ignore": [
|
|
56
|
+
"after-comment",
|
|
57
|
+
"stylelint-commands"
|
|
58
|
+
]
|
|
35
59
|
}
|
|
36
60
|
],
|
|
37
61
|
"comment-no-empty": true,
|
|
38
62
|
"comment-whitespace-inside": "always",
|
|
63
|
+
"comment-word-disallowed-list": [
|
|
64
|
+
"/^TODO:/"
|
|
65
|
+
],
|
|
66
|
+
"custom-media-pattern": null,
|
|
39
67
|
"custom-property-empty-line-before": null,
|
|
40
|
-
"
|
|
41
|
-
"declaration-
|
|
42
|
-
"declaration-block-
|
|
43
|
-
"declaration-block-
|
|
44
|
-
"declaration-block-semicolon-space-after": "always-single-line",
|
|
45
|
-
"declaration-block-semicolon-space-before": "never",
|
|
68
|
+
"custom-property-pattern": null,
|
|
69
|
+
"declaration-block-no-duplicate-properties": true,
|
|
70
|
+
"declaration-block-no-redundant-longhand-properties": true,
|
|
71
|
+
"declaration-block-no-shorthand-property-overrides": true,
|
|
46
72
|
"declaration-block-single-line-max-declarations": 1,
|
|
47
|
-
"declaration-
|
|
48
|
-
"declaration-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
73
|
+
"declaration-no-important": true,
|
|
74
|
+
"declaration-property-unit-allowed-list": {
|
|
75
|
+
"border": [
|
|
76
|
+
"px"
|
|
77
|
+
],
|
|
78
|
+
"line-height": [],
|
|
79
|
+
"outline-offset": [
|
|
80
|
+
"px"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"declaration-property-unit-disallowed-list": {},
|
|
84
|
+
"declaration-property-value-allowed-list": {},
|
|
85
|
+
"declaration-property-value-disallowed-list": {},
|
|
86
|
+
"font-family-name-quotes": "always-unless-keyword",
|
|
87
|
+
"font-family-no-duplicate-names": true,
|
|
88
|
+
"font-family-no-missing-generic-family-keyword": true,
|
|
89
|
+
"font-weight-notation": "numeric",
|
|
90
|
+
"function-allowed-list": null,
|
|
91
|
+
"function-calc-no-unspaced-operator": true,
|
|
92
|
+
"function-disallowed-list": null,
|
|
93
|
+
"function-linear-gradient-no-nonstandard-direction": true,
|
|
94
|
+
"function-url-no-scheme-relative": true,
|
|
95
|
+
"function-url-quotes": "always",
|
|
96
|
+
"function-url-scheme-allowed-list": null,
|
|
97
|
+
"function-url-scheme-disallowed-list": null,
|
|
98
|
+
"keyframe-declaration-no-important": true,
|
|
99
|
+
"length-zero-no-unit": true,
|
|
61
100
|
"max-nesting-depth": 4,
|
|
62
|
-
"media-feature-
|
|
63
|
-
"media-feature-
|
|
64
|
-
"media-feature-
|
|
65
|
-
"media-feature-
|
|
66
|
-
"
|
|
67
|
-
"media-query-list-comma-newline-after": null,
|
|
68
|
-
"media-query-list-comma-newline-before": null,
|
|
69
|
-
"media-query-list-comma-space-after": null,
|
|
70
|
-
"media-query-list-comma-space-before": null,
|
|
101
|
+
"media-feature-name-allowed-list": null,
|
|
102
|
+
"media-feature-name-disallowed-list": null,
|
|
103
|
+
"media-feature-name-no-unknown": true,
|
|
104
|
+
"media-feature-name-no-vendor-prefix": true,
|
|
105
|
+
"no-descending-specificity": true,
|
|
71
106
|
"no-duplicate-at-import-rules": true,
|
|
72
107
|
"no-duplicate-selectors": true,
|
|
73
108
|
"no-empty-source": true,
|
|
74
|
-
"no-eol-whitespace": true,
|
|
75
|
-
"no-extra-semicolons": true,
|
|
76
109
|
"no-invalid-double-slash-comments": true,
|
|
77
|
-
"no-
|
|
110
|
+
"no-unknown-animations": true,
|
|
111
|
+
"number-max-precision": [
|
|
112
|
+
2,
|
|
113
|
+
{
|
|
114
|
+
"ignoreUnits": [
|
|
115
|
+
"em",
|
|
116
|
+
"rem"
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"property-allowed-list": null,
|
|
121
|
+
"property-disallowed-list": null,
|
|
122
|
+
"property-no-unknown": true,
|
|
123
|
+
"property-no-vendor-prefix": true,
|
|
78
124
|
"rule-empty-line-before": [
|
|
79
125
|
"always",
|
|
80
126
|
{
|
|
81
|
-
"except": [
|
|
82
|
-
|
|
127
|
+
"except": [
|
|
128
|
+
"first-nested"
|
|
129
|
+
],
|
|
130
|
+
"ignore": [
|
|
131
|
+
"after-comment"
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"selector-attribute-operator-allowed-list": null,
|
|
136
|
+
"selector-attribute-operator-disallowed-list": null,
|
|
137
|
+
"selector-attribute-quotes": "always",
|
|
138
|
+
"selector-class-pattern": "[a-z]+",
|
|
139
|
+
"selector-combinator-allowed-list": null,
|
|
140
|
+
"selector-combinator-disallowed-list": null,
|
|
141
|
+
"selector-id-pattern": null,
|
|
142
|
+
"selector-max-attribute": 1,
|
|
143
|
+
"selector-max-class": 3,
|
|
144
|
+
"selector-max-combinators": 2,
|
|
145
|
+
"selector-max-compound-selectors": 3,
|
|
146
|
+
"selector-max-id": 1,
|
|
147
|
+
"selector-max-pseudo-class": 2,
|
|
148
|
+
"selector-max-specificity": [
|
|
149
|
+
"0,5,1",
|
|
150
|
+
{
|
|
151
|
+
"severity": "error"
|
|
83
152
|
}
|
|
84
153
|
],
|
|
85
|
-
"selector-
|
|
86
|
-
"selector-
|
|
87
|
-
"selector-
|
|
88
|
-
"selector-
|
|
89
|
-
"selector-
|
|
90
|
-
"selector-
|
|
91
|
-
"selector-
|
|
92
|
-
"selector-
|
|
93
|
-
"selector-
|
|
94
|
-
"selector-
|
|
95
|
-
"selector-
|
|
154
|
+
"selector-max-type": 2,
|
|
155
|
+
"selector-max-universal": 1,
|
|
156
|
+
"selector-nested-pattern": null,
|
|
157
|
+
"selector-no-qualifying-type": true,
|
|
158
|
+
"selector-no-vendor-prefix": true,
|
|
159
|
+
"selector-pseudo-class-allowed-list": null,
|
|
160
|
+
"selector-pseudo-class-disallowed-list": null,
|
|
161
|
+
"selector-pseudo-class-no-unknown": true,
|
|
162
|
+
"selector-pseudo-element-allowed-list": null,
|
|
163
|
+
"selector-pseudo-element-colon-notation": "double",
|
|
164
|
+
"selector-pseudo-element-disallowed-list": null,
|
|
165
|
+
"selector-pseudo-element-no-unknown": true,
|
|
166
|
+
"selector-type-no-unknown": true,
|
|
167
|
+
"shorthand-property-no-redundant-values": true,
|
|
96
168
|
"string-no-newline": true,
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
169
|
+
"time-min-milliseconds": 100,
|
|
170
|
+
"unit-allowed-list": [
|
|
171
|
+
"%",
|
|
172
|
+
"deg",
|
|
173
|
+
"em",
|
|
174
|
+
"ms",
|
|
175
|
+
"px",
|
|
176
|
+
"rem",
|
|
177
|
+
"s",
|
|
178
|
+
"vh",
|
|
179
|
+
"vmax",
|
|
180
|
+
"vmin",
|
|
181
|
+
"vw"
|
|
182
|
+
],
|
|
183
|
+
"unit-disallowed-list": null,
|
|
184
|
+
"unit-no-unknown": true,
|
|
185
|
+
"value-keyword-case": "lower",
|
|
186
|
+
"value-no-vendor-prefix": true
|
|
103
187
|
}
|
|
104
188
|
}
|