[IMP] test_lint, *: eslint remove caughtErrorsIgnorePattern from no-unused-vars

Unused catch block arguments are now forbidden even when prefixed with an
underscore:  if the argument on the catch block is not needed, the use of the
optional catch binding is enforced.

Part-of: odoo/odoo#105433
This commit is contained in:
Jorge Pinna Puissant
2022-11-09 16:08:07 +01:00
parent ceac99b81b
commit 4f24e34b39
86 changed files with 192 additions and 165 deletions
@@ -47,7 +47,7 @@ const ReCaptcha = Class.extend({
return {
token: await window.grecaptcha.execute(this._publicKey, {action: action})
};
} catch (_e) {
} catch {
return {
error: _t("The recaptcha site key is invalid."),
};