From 9fd3ddbce9475ce7c101cb024177703de1daf60a Mon Sep 17 00:00:00 2001 From: Jorge Pinna Puissant Date: Wed, 9 Nov 2022 10:08:27 +0000 Subject: [PATCH] [IMP] web: add the new test_lint eslint rules to the tooling closes odoo/odoo#105433 Related: odoo/enterprise#33802 Signed-off-by: Xavier Morel (xmo) --- addons/web/tooling/_eslintrc.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/web/tooling/_eslintrc.json b/addons/web/tooling/_eslintrc.json index 087051e506d..1b56b3010aa 100644 --- a/addons/web/tooling/_eslintrc.json +++ b/addons/web/tooling/_eslintrc.json @@ -16,10 +16,13 @@ "no-const-assign": ["error"], "no-debugger": ["error"], "no-dupe-class-members": ["error"], + "no-dupe-keys": ["error"], + "no-dupe-args": ["error"], + "no-dupe-else-if": ["error"], "no-unsafe-negation": ["error"], "no-duplicate-imports": ["error"], "valid-typeof": ["error"], - "no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false, "caughtErrors": "all", "caughtErrorsIgnorePattern": "^_" }], + "no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false, "caughtErrors": "all" }], "curly": ["error", "all"], "prefer-const": ["error", { "destructuring": "all",