Files
odoo_source/addons/web/tooling/_eslintrc.json
T
Simon Genin (ges) 8d57a5cde9 [ADD] web: prettier and eslint tooling
Provide an opt in js tooling system by adding a node env with prettier and eslint configured.
3 bash scripts are provided: enable.sh, disable.sh and reload.sh.

Enable.sh: add to the community root (and optionaly to the enterprise root) the env.
Disable.sh: remove the env.
Reload.sh: disable then enable.
2021-06-18 21:31:27 +02:00

22 lines
391 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"
},
"globals": {
"odoo": "writable",
"owl": "readonly",
"luxon": "readonly"
}
}