-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc.json
41 lines (41 loc) · 1.17 KB
/
.eslintrc.json
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
35
36
37
38
39
40
41
{
"env": {
"browser": false,
"commonjs": false,
"node": true,
"mocha": true,
"es2021": true
},
"globals": {
"assert" : "writeable",
"expect" : "writeable",
"sinon" : "writeable",
"ACC_EOL" : "readonly",
"DEVICE_EOL" : "readonly",
"FORMAT_EOL" : "readonly",
"UNITS_EOL" : "readonly",
"PERMS_EOL" : "readonly",
"DEVICE_DATA" : "readonly",
"ACC_DATA" : "readonly",
"CHAR_DATA" : "readonly",
"CMD4_CHAR_TYPE_ENUMS" : "readonly",
"CMD4_ACC_TYPE_ENUM" : "readonly",
"CMD4_DEVICE_TYPE_ENUM" : "readonly",
"cleanStatesDir" : "readonly",
"accEnumIndexToC" : "readonly",
"devEnumIndexToC" : "readonly",
"fs" : "writeable",
"HomebridgeAPI" : "writeable",
"Logger" : "writeable",
"platformAccessory_1" : "writeable"
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12
},
"rules": {
"no-fallthrough": ["error", { "commentPattern": "break[\\s\\w]*omitted"}],
"no-whitespace-before-property": ["error"],
"arrow-spacing": ["error"]
}
}