This repository has been archived by the owner on Dec 1, 2024. It is now read-only.
[ Internal API ] Allow linters to blame nodes that were not given to getLintErrorForNode. #278
Labels
bc break
Backwards-incompatible changes
Hmm, yeah, it's currently a bit broken: getPrettyTextForNode takes a TNode but is called with others:
The right thing to do is probably to make that take a Node, not a TNode, and make linters use
as
etc.The alternative fix is to make ASTLintError generic again, but that led to a lot of complicated spaghetti
Originally posted by @fredemmott in #276
The text was updated successfully, but these errors were encountered: