#Sort functions alphabetically
8 messages · Page 1 of 1 (latest)
@unborn glen Looks like the member-ordering eslint rule has an option for alphabetical ordering https://typescript-eslint.io/rules/member-ordering/ - though it won't sort them for you just let you know if they aren't sorted.
Yeah I've seen this already but I have a 7k lines long file for and I don't wanna sort it out manually
I was hoping maybe someone extension that I'm unaware of would help me
Or even some tsmorph script
do you need them sorted in vcs or just for ease of development? if it's the latter you can use the outline view
Inside the file itself
yes. use the sort-class-members eslint plugin, it lets you automatically keep class methods sorted alphabetically