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.
22 lines
391 B
JSON
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"
|
|
}
|
|
}
|