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