If you are only doing extremely basic JS with something like stimulus (for example with Ruby on Rails), then you really don’t NEED typescript. Since you are probably keeping your JavaScript usage to a minimum anyway.
Then you need a formatter, linter and type checker for Ruby. And those are probably as slow as the pure JS ones.
Then you need a formatter, linter and type checker for Ruby. And those are probably as slow as the pure JS ones.