Disallows the .prop
/.removeProp
methods and $.prop
/$.removeProp
utilies. Prefer direct property access.
📋 This rule is enabled in plugin:no-jquery/all
.
❌ Examples of incorrect code:
$.prop();
$( 'div' ).prop();
$div.prop();
$( 'div' ).first().prop();
$( 'div' ).append( $( 'input' ).prop() );
$( 'div' ).removeProp();
✔️ Examples of correct code:
prop();
[].prop();
div.prop();
div.prop;
removeProp();
div.removeProp();