Lessons

Explore all newline lessons

Tags
Author
Pricing
Sort By
Video
Spencer Miskoviak
Most Recent
Most Popular
Highest Rated
Reset
https://image.mux.com/C4cA6GtB01BnqG026EVPVWgY6J02CLPUntrsodJ01liHBA00/thumbnail.png?time=0

lesson

How to Test Custom ESLint Linting Rules With ASTPractical Abstract Syntax Trees

Testing custom ESLint linting rules to verify they work as expected

https://image.mux.com/q3CUdXqH8IrcrOiuY02L9PuxVx4Ee3Lqn7RaqPfgHUwE/thumbnail.png?time=0

lesson

How to Unit Test jscodeshift Transforms With ts-jestPractical Abstract Syntax Trees

Create tests for jscodeshift transforms for a faster feedback loop

https://image.mux.com/JgeHXbL6W02fs01pYkO4RB22bwZFCqaPSB00Pn02LFP8VJA/thumbnail.png?time=0

lesson

How to Use ESLint to Create AST Rules With Babel TraversePractical Abstract Syntax Trees

Use ESLint to create the same linting rule for the code with less boilerplate

https://image.mux.com/4JTEqXcj25wjwi5OI01PglmPHiG1Sn8jwlrcPh7UD8nU/thumbnail.png?time=0

lesson

How to Ensure Codebase is Up to Date With Linting RulesPractical Abstract Syntax Trees

Implement a linting rule to prevent the code we just transformed from being reintroduced in the future

https://image.mux.com/U01028OYfpIOIsT93zjH400ZEqngbLnjRArw540101nrvGoU/thumbnail.png?time=0

lesson

How to Create Codemods Using jscodeshiftPractical Abstract Syntax Trees

Using jscodeshift to make the same code transformations with less boilerplate

https://image.mux.com/iWgS5eZnMbHh8afHNmskAGqp4aszS9AKkHXxWOuYtcA/thumbnail.png?time=0

lesson

How to Add a Component and Update an ASTPractical Abstract Syntax Trees

Introduce a shared Button component to replace all existing button elements

https://image.mux.com/uQXkLWplfgk02uxCnJ88JdttxjPHq3cMGxt3e02Z00hXfA/thumbnail.png?time=0

lesson

Traversing an AST With Babel TraversePractical Abstract Syntax Trees

Programmatically traverse an AST and visit arbitrary nodes

https://image.mux.com/GcFL3VyKsUkgj42CncwKeiAc5bNom8daXxgnKymge024/thumbnail.png?time=0

lesson

How to Generate a JavaScript AST With Babel PluginsPractical Abstract Syntax Trees

Exploring tools to convert (or parse) JavaScript into a real AST