diff --git a/.eslintrc.json b/.eslintrc.json index 46d829cbfd..d97a8cc8d0 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -73,6 +73,7 @@ "no-implied-eval": "error", "no-inner-declarations": "off", "no-iterator": "error", + "no-jquery/no-constructor-attributes": "error", "no-jquery/no-parse-html-literal": "error", "no-label-var": "error", "no-labels": "error", diff --git a/frontend_tests/node_tests/components.js b/frontend_tests/node_tests/components.js index 9bafa27a4c..dd36cbbd2c 100644 --- a/frontend_tests/node_tests/components.js +++ b/frontend_tests/node_tests/components.js @@ -115,43 +115,49 @@ function make_switcher() { return $self; } -mock_jquery((sel, attributes) => { +mock_jquery((sel) => { if (sel.stub) { // The component often redundantly re-wraps objects. return sel; } switch (sel) { - case "