Anders Kaseorg
|
e8a30060ee
|
js: Enable no-jquery/no-constructor-attributes.
https://github.com/wikimedia/eslint-plugin-no-jquery/blob/master/docs/rules/no-constructor-attributes.md
The motivation for this rule is a subtle caveat buried in the
documentation:
https://api.jquery.com/jquery/#jQuery-html-attributes
“While the second argument is convenient, its flexibility can lead to
unintended consequences (e.g. $( "<input>", {size: "4"} ) calling the
.size() method instead of setting the size attribute).”
Signed-off-by: Anders Kaseorg <anders@zulip.com>
|
2022-08-16 13:42:28 -07:00 |