Would love suggestions here, I've migrated towards a style of always using that=this (even when not required because we're in an arrow function, for example) because the JavaScript refactoring tools I'm aware of aren't particularly robust (I'm mostly refactoring by hand) and I don't have confidence that the dev (me) moving code from one method to another will always correctly identify whether the source and destination this inheritance contexts will have the same shape. Always using that=this doesn't solve all problems (you can still get weird this's you're not expecting) but from what I think I've seen this sort of "conservative" approach seems to increase the safety of a lot of refactoring efforts in the more common use cases.
Are there sweet JS refactoring tools that a VS Code using, typescript preferring dev like myself should be using? I'd really like to drop this style if I can.
Are there sweet JS refactoring tools that a VS Code using, typescript preferring dev like myself should be using? I'd really like to drop this style if I can.