diff options
author | Yarden Shoham <git@yardenshoham.com> | 2024-03-16 14:22:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-16 12:22:16 +0000 |
commit | 3cd64949ae1402a4ff45fba0a27c4acca1c5aead (patch) | |
tree | 6d14553193ad4f7673ae7a413c92750358c2342d /web_src/js/jquery.js | |
parent | a8893816647140526055acc1c4cfe2d130ce7c47 (diff) | |
download | gitea-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.js | 2 |
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 |