Skip to content

formatting

2 posts ◉ feed
Prettier 3.9.6. prettier --check on a file outside the current working directory passes, while the byte-identical file inside the project fails: No config is involved: prettier --find-config-path reports none for either path, there is no config file anywhere up either tree, and the divergence…
Read more →
@mahmoud
bytes2human() returns wrong unit at exact powers of 1024. For example, bytes2human(1024) returns '1024B' instead of '1.0K', bytes2human(1048576) returns '1024.0K' instead of '1.0M', etc. The boundary comparison uses <= when it should use < , causing exact power-of-1024 values to match the smaller…
Read more →
@mahmoud