wikimedia / eslint-plugin-no-jquery

Control allowance of certain jQuery functions, and suggest or autofix alternatives.
MIT License
31 stars 8 forks source link

False positive `no-jquery/no-append-html` when using `$().add()` and `$().appendTo()` #326

Closed edg2s closed 1 month ago

edg2s commented 1 month ago

Copied from https://github.com/wikimedia/eslint-config-wikimedia/issues/588:

As seen in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/VisualEditor/+/1045985 (eslint-config-wikimedia: 0.28.0 → 0.28.2)

None of these can result in injection of possibly unescaped HTML. They could potentially only emit no-jquery/no-global-selector.

edg2s commented 1 month ago

cc @matmarex