Use ESLint to build testing rules to ensure design system components are consumed properly in production. Discover how tools like ESLint parse JavaScript down into a data structure called an abstract syntax tree (AST) We will then touch on how ESLint rules work and how to parse our Lit templates into HTML. Finally we’ll start creating our first rules.

10m read timeFrom medium.com
Post cover image
Table of contents
Use ESLint to Enforce Design SystemWhat’s an Abstract Syntax Tree?Getting Curious with the AST ExplorerHow Do Eslint Rules Work?The Visitor PatternWhat Does an Eslint Rule Look Like?How Can We Transform Our Templates into HTML?Going further

Sort: