Disallows the .has
method.
📋 This rule is enabled in plugin:no-jquery/all
.
❌ Examples of incorrect code:
$( 'div' ).has();
$div.has();
$( 'div' ).first().has();
$( 'div' ).append( $( 'input' ).has() );
✔️ Examples of correct code:
has();
[].has();
div.has();
div.has;