1
+ module . exports = {
2
+ extends : [
3
+ 'airbnb-base' ,
4
+ 'plugin:promise/recommended'
5
+ ] ,
6
+ parserOptions : {
7
+ ecmaVersion : 9 ,
8
+ ecmaFeatures : {
9
+ jsx : false
10
+ } ,
11
+ sourceType : 'module'
12
+ } ,
13
+ env : {
14
+ es6 : true ,
15
+ node : true ,
16
+ jest : true
17
+ } ,
18
+ plugins : [
19
+ 'import' ,
20
+ 'node' ,
21
+ 'promise'
22
+ ] ,
23
+ rules : {
24
+ 'arrow-parens' : 'off' ,
25
+ 'eqeqeq' : 'off' ,
26
+ 'no-bitwise' : 'off' ,
27
+ 'comma-dangle' : [
28
+ 'error' ,
29
+ 'only-multiline'
30
+ ] ,
31
+ complexity : [ 'error' , 10 ] ,
32
+ 'func-names' : 'off' ,
33
+ 'global-require' : 'off' ,
34
+ 'handle-callback-err' : [
35
+ 'error' ,
36
+ '^(err|error)$'
37
+ ] ,
38
+ 'import/no-unresolved' : [
39
+ 'error' ,
40
+ {
41
+ caseSensitive : true ,
42
+ commonjs : true ,
43
+ ignore : [ '^[^.]' ]
44
+ }
45
+ ] ,
46
+ 'max-len' : 'off' ,
47
+ 'no-unused-vars' : 'off' ,
48
+ 'import/prefer-default-export' : 'off' ,
49
+ 'linebreak-style' : 'off' ,
50
+ 'no-catch-shadow' : 'error' ,
51
+ 'no-continue' : 'off' ,
52
+ 'no-div-regex' : 'warn' ,
53
+ 'no-else-return' : 'off' ,
54
+ 'no-param-reassign' : 'off' ,
55
+ 'no-plusplus' : 'off' ,
56
+ 'no-shadow' : 'off' ,
57
+ // enable console for this project
58
+ 'no-console' : 'off' ,
59
+ 'no-multi-assign' : 'off' ,
60
+ 'no-underscore-dangle' : 'off' ,
61
+ 'node/no-deprecated-api' : 'error' ,
62
+ 'node/process-exit-as-throw' : 'error' ,
63
+ 'object-curly-spacing' : [
64
+ 'error' ,
65
+ 'always'
66
+ ] ,
67
+ 'operator-linebreak' : [
68
+ 'error' ,
69
+ 'after' ,
70
+ {
71
+ overrides : {
72
+ ':' : 'before' ,
73
+ '?' : 'before'
74
+ }
75
+ }
76
+ ] ,
77
+ 'prefer-arrow-callback' : 'off' ,
78
+ 'prefer-destructuring' : 'off' ,
79
+ 'prefer-template' : 'off' ,
80
+ 'quote-props' : [
81
+ 1 ,
82
+ 'as-needed' ,
83
+ {
84
+ unnecessary : true
85
+ }
86
+ ] ,
87
+ semi : [
88
+ 'error' ,
89
+ 'never'
90
+ ]
91
+ } ,
92
+ globals : {
93
+ window : true ,
94
+ document : true ,
95
+ App : true ,
96
+ Page : true ,
97
+ Component : true ,
98
+ Behavior : true ,
99
+ wx : true ,
100
+ worker : true ,
101
+ getApp : true
102
+ }
103
+ }
0 commit comments