-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit 9fcb91f
feat: do not apply plug-in if file does not contain styleName attribute (#230)
* feat: add skipAbsentStyleName
* test: add test case for skipAbsentStyleName
* feat: refactor skipAbsentStyleName traversal
* fix: readd require.resolve for resource path
* feat: update options naming
* docs: update for skip option
* refactor: traverse JSXAttribute instead of element1 parent d27306c commit 9fcb91f
File tree
8 files changed
+67
-1
lines changed- src
- schemas
- test/fixtures/react-css-modules/does not apply plugin if no styleName
8 files changed
+67
-1
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
198 | 198 |
| |
199 | 199 |
| |
200 | 200 |
| |
201 | + | ||
201 | 202 |
| |
202 | 203 |
| |
203 | 204 |
| |
|
Lines changed: 31 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
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 | + |
Lines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | + | ||
17 | 18 |
| |
18 | 19 |
| |
19 | 20 |
| |
| |||
31 | 32 |
| |
32 | 33 |
| |
33 | 34 |
| |
35 | + | ||
36 | + | ||
34 | 37 |
| |
35 | 38 |
| |
36 | 39 |
| |
| |||
147 | 150 |
| |
148 | 151 |
| |
149 | 152 |
| |
150 | - | ||
153 | + | ||
151 | 154 |
| |
152 | 155 |
| |
153 | 156 |
| |
| |||
183 | 186 |
| |
184 | 187 |
| |
185 | 188 |
| |
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | ||
186 | 193 |
| |
187 | 194 |
| |
188 | 195 |
| |
| |||
250 | 257 |
| |
251 | 258 |
| |
252 | 259 |
| |
260 | + | ||
261 | + | ||
262 | + | ||
263 | + | ||
253 | 264 |
| |
254 | 265 |
| |
255 | 266 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
72 | + | ||
73 | + | ||
74 | + | ||
72 | 75 |
| |
73 | 76 |
| |
74 | 77 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + |
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + |
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + |
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + |
0 commit comments