-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.eslintrc.js
34 lines (33 loc) · 987 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = {
"extends": "eslint:recommended",
"globals": {
"Utils" : "writable", // defined in utils.js
"UART" : "readonly",
"Puck" : "readonly",
"device" : "writable", // defined in index.js
"appJSON" : "writable", // defined in index.js
},
"rules": {
"indent": [
"off",
2,
{
"SwitchCase": 1
}
],
"no-constant-condition": "off",
"no-empty": ["warn", { "allowEmptyCatch": true }],
"no-global-assign": "off",
"no-inner-declarations": "off",
"no-prototype-builtins": "off",
"no-redeclare": "off",
"no-unreachable": "warn",
"no-cond-assign": "warn",
"no-useless-catch": "warn",
"no-undef": "warn",
"no-unused-vars": ["warn", { "args": "none" } ],
"no-useless-escape": "off",
"no-control-regex" : "off"
},
reportUnusedDisableDirectives: true,
}