/
.eslintrc.js
84 lines (84 loc) · 1.5 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
},
extends: [
"standard",
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
globals: {
colors: true,
com: true,
org: true,
importClass: true,
storages: true,
device: true,
log: true,
threads: true,
exit: true,
runtime: true,
java: true,
importPackage: true,
ui: true,
activity: true,
context: true,
sleep: true,
android: true,
toastLog: true,
files: true,
requestScreenCapture: true,
http: true,
toast: true,
engines: true,
random: true,
events: true,
press: true,
gesture: true,
getPackageName: true,
shell: true,
floaty: true,
currentPackage: true,
launch: true,
app: true,
images: true,
launchApp: true,
idEndsWith: true,
textEndsWith: true,
descEndsWith: true,
back: true,
dialogs: true,
auto: true,
setClip: true,
getClip: true,
javax: true,
media: true,
captureScreen: true,
timers: true,
selector: true,
recents: true,
swipe: true,
waitForActivity: true,
waitForPackage: true,
currentActivity: true,
JavaAdapter: true,
__non_webpack_require__: true,
DEBUG: true,
},
rules: {
"indent": ["error", "tab", { SwitchCase: 1 }],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"block-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "never"],
"quote-props": ["error", "consistent-as-needed"],
"comma-dangle": ["error", "always-multiline"],
"no-tabs": ["off"],
},
};