Forbid jQuery `.attr` (#30116)

Use `.getAttribute`, `.setAttribute`, or `.removeAttribute` instead

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
This commit is contained in:
Yarden Shoham 2024-03-27 15:49:54 +02:00 committed by GitHub
parent f1707f4562
commit 34acd8e376
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@ rules:
jquery/no-ajax-events: [2] jquery/no-ajax-events: [2]
jquery/no-ajax: [2] jquery/no-ajax: [2]
jquery/no-animate: [2] jquery/no-animate: [2]
jquery/no-attr: [0] jquery/no-attr: [2]
jquery/no-bind: [2] jquery/no-bind: [2]
jquery/no-class: [0] jquery/no-class: [0]
jquery/no-clone: [2] jquery/no-clone: [2]
@ -397,7 +397,7 @@ rules:
no-jquery/no-animate-toggle: [2] no-jquery/no-animate-toggle: [2]
no-jquery/no-animate: [2] no-jquery/no-animate: [2]
no-jquery/no-append-html: [2] no-jquery/no-append-html: [2]
no-jquery/no-attr: [0] no-jquery/no-attr: [2]
no-jquery/no-bind: [2] no-jquery/no-bind: [2]
no-jquery/no-box-model: [2] no-jquery/no-box-model: [2]
no-jquery/no-browser: [2] no-jquery/no-browser: [2]