Always add a return type to a function definition.
This is something that the compiler is able to figure out even we don't add a return type. However, by adding the return type, it's more human-readable.
Remove unused import statements
Remove unused variables, arguments.
Always format code with prettier
prettier
Catch error from async function
error
Getting Started - Linting your TypeScript Codebasearrow-up-right
The future of TypeScript on ESLintarrow-up-right
Last updated 4 years ago