Commit e62e159
fix: catch babel parse errors (#198)
This change updates the plugin to catch babel parsing errors, so that we
can give prettier a chance to throw. We're still writing an error to
console, so that in the event that prettier doesn't end up throwing,
we're still indicating that the import sorting failed.

Closes #197
---------
Co-authored-by: Ian VanSchooten <ian.vanschooten@gmail.com>
Co-authored-by: Frederic Barthelemy <github@fbartho.com>1 parent 16d8a5a commit e62e159
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| |||
0 commit comments