You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eslint-plugin-simple-import-sort sorts these like the above, which is to say naturally. TS also does this (with some configuration). dprint formats these in string order only:
It'd be great if natural sorting were an option. I'm not sure how feasible that is cross-platform, but both eslint-plugin-simple-import-sort and TS use Intl.Collator to do this, so maybe it's standardish.
The text was updated successfully, but these errors were encountered:
So adding the english icu data adds about 1MB to the wasm file. I think maybe some of this could be implemented manually without needing all this language specific data. For example, the strings could be parsed into parts then compared by each part (ex. numbers could be compared by sort order of numbers).
Playground link
Given:
eslint-plugin-simple-import-sort
sorts these like the above, which is to say naturally. TS also does this (with some configuration). dprint formats these in string order only:It'd be great if natural sorting were an option. I'm not sure how feasible that is cross-platform, but both eslint-plugin-simple-import-sort and TS use
Intl.Collator
to do this, so maybe it's standardish.The text was updated successfully, but these errors were encountered: