TSLint - Checks (“lints”) your code for problems - There are a bunch of built-in rules - Line length - Alphabetically ordered imports - Variable name consistency - Prevent unnecessary type assertions - etc - And you can build your own!
Custom TSLint Rules - Rules are just code - Rules provide details of what’s wrong - Optionally, rules can fix the code automatically ✨ - Two types of rules: - String-based rules - AST-based rules - So what’s an AST?
Abstract Syntax Trees - Compiler data type - Machine-readable representation of your code if (user.isAdmin) { return "Hello, Admin." } else { return "401 lol" } if user.isAdmin return return "Hello, Admin" "401 lol"