This article discusses the general framework of eslint rule writing.
This article discusses parsing highly fault-tolerant code, modifying and generating an AST, and regenerating code.