aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/jquery.js
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2024-03-16 14:22:16 +0200
committerGitHub <noreply@github.com>2024-03-16 12:22:16 +0000
commit3cd64949ae1402a4ff45fba0a27c4acca1c5aead (patch)
tree6d14553193ad4f7673ae7a413c92750358c2342d /web_src/js/jquery.js
parenta8893816647140526055acc1c4cfe2d130ce7c47 (diff)
downloadgitea-3cd64949ae1402a4ff45fba0a27c4acca1c5aead.tar.gz
gitea-3cd64949ae1402a4ff45fba0a27c4acca1c5aead.zip
Forbid variables containing jQuery collections not having the `$` prefix (#29839)
See https://github.com/wikimedia/eslint-plugin-no-jquery/blob/master/docs/rules/variable-pattern.md --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src/js/jquery.js')
-rw-r--r--web_src/js/jquery.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/jquery.js b/web_src/js/jquery.js
index 892e2763cb..6b2199896c 100644
--- a/web_src/js/jquery.js
+++ b/web_src/js/jquery.js
@@ -1,3 +1,3 @@
import $ from 'jquery';
-window.$ = window.jQuery = $;
+window.$ = window.jQuery = $; // eslint-disable-line no-jquery/variable-pattern