Master the art of the AST and take control of your JS
summary
Shows exact code changes and tools: parses JS into ASTs with Babel/Typescript/Rollup/ESLint, uses AST Explorer to find node types like MemberExpression or DebuggerStatement, implements an ESLint rule to catch globals piggybacking on window.property, writes a Babel plugin that removes debugger statements, and runs jscodeshift codemods to convert thousands of ES5 files to ES6 (var → let/const) while preserving formatting and diffs so the transformations actually work.
AI-written summary · about
chapters (10)
- 0:00Start
- 0:19Javascript Fatigue
- 3:57What Are Abstract Syntax Trees
- 4:39Variable Declaration
- 6:04Par Step
- 8:07Writing Your Own Es Lint Rule
- 8:20Code Piggybacking
- 12:51The Visitor Pattern
- 14:03Debugger Statement
- 15:46The Generating Code Step
related talks
38mThe magical land of AST's with babel, eslint and codemods
47mComputer, refactor my code!
31mAST à la Vista, Baby
43mJavaScript ❤ binary data
20mThey see me refactorin'. They hatin'
44mJavaScript AST programming: Introduction and beyond
40mRefactoring large JavaScript codebases
22mHow Linters, Compilers & Other Cool Things Work
