prefer-dom-node-append
: Property 'append' does not exist on type 'ChildNode'.
#2474
Labels
prefer-dom-node-append
: Property 'append' does not exist on type 'ChildNode'.
#2474
Description
Code using
appendChild
on a Node should not be autofixed to useappend
. I think this can be improved by using type information and only raising an issue when (or at the very least not autofixing unless) it is known to be an Element.This relates to #347
Fail
These are currently working fine and should still work
Pass
Additional Info
These examples are oversimplified just to get the right type.
The text was updated successfully, but these errors were encountered: