Discover how to build advanced testing rules with ESLint to ensure compliance with Design System best practices. This is part 2 of the 3-parts “Design System Best Practices with ESLint” series. This series aims to help you encourage those consuming your design system to follow your best practices with the ESLint tool.
Table of contents
Build Testing Rules for Your Design SystemA quick reminder of Part 1Setting up our projectCreating a simple ESLint ruleParsing our HTMLWhat’s the deal with templateExpressionToHtml?Creating our visitor functionsWriting our assertionsBack to templateExpressionToHtmlLimitations of ESLintGoing furtherSort: