Disallows the .toggle
method.
no-visibility
instead.
❌ Examples of incorrect code:
$( 'div' ).toggle();
$div.toggle();
$( 'div' ).first().toggle();
$( 'div' ).append( $( 'input' ).toggle() );
✔️ Examples of correct code:
toggle();
[].toggle();
div.toggle();
div.toggle;