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 /.eslintrc.yaml | |
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 '.eslintrc.yaml')
-rw-r--r-- | .eslintrc.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml index f84cb39a41..5f291f13e7 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -487,7 +487,7 @@ rules: no-jquery/no-visibility: [2] no-jquery/no-when: [2] no-jquery/no-wrap: [2] - no-jquery/variable-pattern: [0] + no-jquery/variable-pattern: [2] no-label-var: [2] no-labels: [0] # handled by no-restricted-syntax no-lone-blocks: [2] |