Commit ee2f62f
Fix config file boolean options being ignored
Boolean CLI options with defaults (keepComments, sortComponentsProps, split)
were not being respected when set in a config file. This happened because
Commander.js always sets these options to their default values, and the
subsequent Object.assign would overwrite config file values with CLI defaults.
The fix applies the same pattern already used for lineWidth, sort, and bundle:
explicitly check for config file values before the merge, using nullish
coalescing to preserve CLI-specified values when present.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent dcbcf06 commit ee2f62f
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
0 commit comments