2020-05-27 15:39:36 +00:00
|
|
|
{
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 6,
|
|
|
|
"sourceType": "script"
|
|
|
|
},
|
|
|
|
"rules": {
|
2020-05-27 15:51:14 +00:00
|
|
|
"indent": [
|
|
|
|
"warn",
|
|
|
|
2,
|
|
|
|
{
|
|
|
|
"SwitchCase": 1
|
|
|
|
}
|
2020-05-28 07:20:41 +00:00
|
|
|
],
|
|
|
|
"no-undef": "warn",
|
|
|
|
"no-redeclare": "warn",
|
|
|
|
"no-var": "warn",
|
|
|
|
"no-unused-vars":"off" // we define stuff to use in other scripts
|
2020-05-27 15:39:36 +00:00
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": true
|
2020-05-28 07:20:41 +00:00
|
|
|
},
|
|
|
|
"extends": "eslint:recommended",
|
|
|
|
"globals": {
|
|
|
|
"btoa": "writable",
|
|
|
|
"Espruino": "writable",
|
|
|
|
|
|
|
|
"htmlElement": "readonly",
|
|
|
|
"Puck": "readonly",
|
|
|
|
"escapeHtml": "readonly",
|
|
|
|
"htmlToArray": "readonly",
|
|
|
|
"heatshrink": "readonly",
|
|
|
|
"Puck": "readonly",
|
|
|
|
"Promise": "readonly",
|
|
|
|
"Comms": "readonly",
|
|
|
|
"Progress": "readonly",
|
|
|
|
"showToast": "readonly",
|
|
|
|
"showPrompt": "readonly",
|
|
|
|
"httpGet": "readonly",
|
|
|
|
"getVersionInfo": "readonly",
|
|
|
|
"AppInfo": "readonly",
|
|
|
|
"marked": "readonly",
|
|
|
|
"appSorter": "readonly",
|
|
|
|
"Uint8Array" : "readonly",
|
|
|
|
"SETTINGS" : "readonly",
|
|
|
|
"globToRegex" : "readonly",
|
|
|
|
"toJS" : "readonly"
|
|
|
|
}
|
2020-05-27 15:39:36 +00:00
|
|
|
}
|