Files
odoo_source/addons/web/tooling/_eslintrc.json
T
Jorge Pinna Puissant 42940aa6e9 [FIX] web: add the globals
On 19e775b3cc we added the same rules that
exists in test_lint on the tooling, but we didn't add the globals.

closes odoo/odoo#86649

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2022-03-18 13:18:34 +01:00

43 lines
1.1 KiB
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": {
"owl": "readonly",
"odoo": "readonly",
"$": "readonly",
"jQuery": "readonly",
"_": "readonly",
"Chart": "readonly",
"fuzzy": "readonly",
"QWeb2": "readonly",
"Popover": "readonly",
"StackTrace": "readonly",
"QUnit": "readonly",
"luxon": "readonly",
"moment": "readonly",
"py": "readonly",
"ClipboardJS": "readonly",
"globalThis": "readonly"
}
}