How Linters, Compilers & Other Cool Things Work
summary
Explains what actually gets built and why it works: the abstract syntax tree is the concrete data structure used to parse JavaScript, drive Babel transforms, and power ESLint rules. Shows an AST Explorer demo, implements a real ESLint rule that flags nested ternaries, fixes object-shorthand by mutating the node (set shorthand false), and runs a codemod to convert dozens or hundreds of files migrating glamorous → emotion across a 60+‑developer codebase; examples run and the automated changes work.
AI-written summary · about
chapters (16)
- 0:00Intro
- 1:01What are our problems
- 3:59What is a compiler
- 5:35Abstract Representation
- 7:15AST Explore
- 8:49Declarations
- 9:10Variable Properties
- 9:49Automated Code Reviews
- 10:55Conditional Expressions
- 11:32Nested Type
- 12:00Conditional Expression
- 13:26Babel Transform
- 14:18Object Properties
- 16:21STS are awesome
- 16:46Estimate rule
- 18:50API changes








