diff --git a/addons/web/tooling/_eslintrc.json b/addons/web/tooling/_eslintrc.json index e7e71183518..e48bce8037f 100644 --- a/addons/web/tooling/_eslintrc.json +++ b/addons/web/tooling/_eslintrc.json @@ -21,7 +21,10 @@ "valid-typeof": ["error"], "no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false, "caughtErrors": "all", "caughtErrorsIgnorePattern": "^_" }], "curly": ["error", "all"], - "prefer-const": ["error"] + "prefer-const": ["error", { + "destructuring": "all", + "ignoreReadBeforeAssign": true + }] }, "globals": { "owl": "readonly",