In this post, I show how to setup Emacs for TypeScript and React (tsx) development, with tree-sitter for syntax highlighting and indentation, and LSP with the TypeScript compiler (including a plugin for faster eslint), via eglot, for code intelligence. Update on 2022-12-27: emacs 29 has tree-sitter built-in! Tree-sitter was merged into Emacs core on November 23 of 2022. The post below is for the situation BEFORE the merge. If you’re running Emacs 29 or later (as I am at the end of 2022), yo...