Tagged articles
2 articles
Page 1 of 1
Huolala Tech
Huolala Tech
Sep 27, 2022 · Frontend Development

How to Build a Custom ESLint Rule to Rewrite Import Paths

This tutorial explains why and how to create a custom ESLint rule that automatically replaces specified import paths, using AST traversal, rule configuration, and fixers, with a complete example including project scaffolding, implementation details, and unit testing.

ASTESLintJavaScript
0 likes · 8 min read
How to Build a Custom ESLint Rule to Rewrite Import Paths