Recently I started working on a new web app project and we used TypeScript on both front-end and the server. TypeScript was a game changer just from the types.
We need static code analysis and code formatting to make the code readable, correct and
<whatever>. Here is how I solved this in my code setup:
- Code analysis -> TypeScript compiler
- Code formatting -> Prettier
That's it. Using pre-commit hooks it made my life so easy that i don't even have to think about code formatting as its done for me and consistent across the board. All I have to think about is the actual code.
Question: Do I need
TSLint to check my code for non-style issues?
Because typescript compilers already does that for you.
I am just asking because I have not felt the need for it and I know everybody uses it. So i am thinking what am I missing?
Please share your thoughts :)