File tree Expand file tree Collapse file tree 3 files changed +261
-219
lines changed Expand file tree Collapse file tree 3 files changed +261
-219
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,25 @@ module.exports = {
14
14
parserOptions : {
15
15
ecmaVersion : 2018 ,
16
16
} ,
17
- ignorePatterns : [
18
- '!.eslintrc.js' ,
19
- 'node_modules/' ,
20
- ] ,
17
+ rules : {
18
+ 'node/no-sync' : 'off' ,
19
+ } ,
21
20
overrides : [
22
21
{
23
22
files : [ 'test/mocks/**' ] ,
24
23
rules : {
25
24
'no-empty-function' : 'off' ,
26
25
} ,
27
26
} ,
27
+ {
28
+ files : [ 'test/**' ] ,
29
+ rules : {
30
+ 'node/no-callback-literal' : 'off' ,
31
+ } ,
32
+ } ,
33
+ ] ,
34
+ ignorePatterns : [
35
+ '!.eslintrc.js' ,
36
+ 'node_modules/' ,
28
37
] ,
29
38
}
Original file line number Diff line number Diff line change 42
42
"safe-event-emitter" : " ^1.0.1"
43
43
},
44
44
"devDependencies" : {
45
- "@metamask/eslint-config" : " ^3 .1.0" ,
45
+ "@metamask/eslint-config" : " ^4 .1.0" ,
46
46
"@types/jest" : " ^26.0.5" ,
47
- "eslint" : " ^6.8 .0" ,
47
+ "eslint" : " ^7.15 .0" ,
48
48
"eslint-plugin-import" : " ^2.20.2" ,
49
49
"eslint-plugin-jest" : " ^23.18.0" ,
50
50
"eslint-plugin-json" : " ^2.0.1" ,
51
+ "eslint-plugin-node" : " ^11.1.0" ,
51
52
"jest" : " ^26.1.0"
52
53
}
53
54
}
You can’t perform that action at this time.
0 commit comments