summaryrefslogtreecommitdiffstats
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-03-16 16:08:10 +0100
committerGitHub <noreply@github.com>2024-03-16 15:08:10 +0000
commit21fe512aac42c9ce3440b8eaae6b2cb2116a0e50 (patch)
tree04c4c4b71e21aef293ee99d8d7797b01b71b2dd2 /.eslintrc.yaml
parentcb78648ad91a9ed0acd0640c2e7b1f580290999a (diff)
downloadgitea-21fe512aac42c9ce3440b8eaae6b2cb2116a0e50.tar.gz
gitea-21fe512aac42c9ce3440b8eaae6b2cb2116a0e50.zip
Forbid jQuery `.prop` and fix related issues (#29832)
The issue checkbox code received a few more cleanups and I specifically tested it. The other changes are trivial. Also, I checked the cases for how many elements match the jQuery selection to determine querySelector vs. querySelectorAll. --------- Co-authored-by: Giteabot <teabot@gitea.io>
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 0003ba95e1..b62b13cefe 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -315,7 +315,7 @@ rules:
jquery/no-parent: [0]
jquery/no-parents: [0]
jquery/no-parse-html: [2]
- jquery/no-prop: [0]
+ jquery/no-prop: [2]
jquery/no-proxy: [2]
jquery/no-ready: [2]
jquery/no-serialize: [2]
@@ -466,7 +466,7 @@ rules:
no-jquery/no-parse-html: [2]
no-jquery/no-parse-json: [2]
no-jquery/no-parse-xml: [2]
- no-jquery/no-prop: [0]
+ no-jquery/no-prop: [2]
no-jquery/no-proxy: [2]
no-jquery/no-ready-shorthand: [2]
no-jquery/no-ready: [2]