Disallows the .die
method. Prefer .off
/EventTarget#removeEventListener
.
no-live
instead.
❌ Examples of incorrect code:
$( 'div' ).die();
$div.die();
$( 'div' ).first().die();
$( 'div' ).append( $( 'input' ).die() );
✔️ Examples of correct code:
die();
[].die();
div.die();
div.die;