All named arguments on the catch block must be used. If for some motive the named argument on the catch block is not used, its name must begin with '_'. closes odoo/odoo#85569 Related: odoo/enterprise#24867 Related: odoo/design-themes#552 Signed-off-by: Géry Debongnie <ged@odoo.com>
30 lines
814 B
JSON
30 lines
814 B
JSON
{
|
|
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": 2019
|
|
},
|
|
"env": {
|
|
"browser": true,
|
|
"es2017": true,
|
|
"qunit": true
|
|
},
|
|
"rules": {
|
|
"prettier/prettier": "error",
|
|
"no-undef": "error",
|
|
"no-restricted-globals": ["error", "event", "self"],
|
|
"no-const-assign": ["error"],
|
|
"no-debugger": ["error"],
|
|
"no-dupe-class-members": ["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": "^_" }]
|
|
},
|
|
"globals": {
|
|
"odoo": "writable",
|
|
"owl": "readonly",
|
|
"luxon": "readonly"
|
|
}
|
|
}
|