summaryrefslogtreecommitdiffstats
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2024-03-27 14:49:54 +0100
committerEarl Warren <contact@earl-warren.org>2024-03-30 07:17:31 +0100
commite10cae386234dfc50135ec59ffabbc495f73a8bd (patch)
treede9c7711d1a2a3364db488789ba0313a42f2229f /.eslintrc.yaml
parentRefactor render (#30136) (diff)
downloadforgejo-e10cae386234dfc50135ec59ffabbc495f73a8bd.tar.xz
forgejo-e10cae386234dfc50135ec59ffabbc495f73a8bd.zip
Forbid jQuery `.attr` (#30116)
Use `.getAttribute`, `.setAttribute`, or `.removeAttribute` instead Signed-off-by: Yarden Shoham <git@yardenshoham.com> (cherry picked from commit 34acd8e3767ec0898f90a74b64ac738d0ce05f0a)
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index 50b3ca05a0..99ce2e97d6 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -281,7 +281,7 @@ rules:
jquery/no-ajax-events: [2]
jquery/no-ajax: [2]
jquery/no-animate: [2]
- jquery/no-attr: [0]
+ jquery/no-attr: [2]
jquery/no-bind: [2]
jquery/no-class: [0]
jquery/no-clone: [2]
@@ -397,7 +397,7 @@ rules:
no-jquery/no-animate-toggle: [2]
no-jquery/no-animate: [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-box-model: [2]
no-jquery/no-browser: [2]