File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
packages/eslint-config-mediagroup Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -20,22 +20,31 @@ module.exports = {
20
20
] ,
21
21
ignorePatterns : [
22
22
'**/*.js' ,
23
- '!**/src/**/*.js'
23
+ '!**/src/**/*.js' ,
24
+ '**/lib/**/*.ts' ,
25
+ '**/3pi-widgets/**/*.ts'
24
26
] ,
25
27
overrides : [
26
28
{
27
29
files : [ '**/middlewares/**/*.ts' ] ,
30
+ parser : '@typescript-eslint/parser' ,
31
+ plugins : [ '@typescript-eslint' ] ,
28
32
extends : [
29
- '@marfeel/eslint-config-ts'
33
+ '@marfeel/js' ,
34
+ 'plugin:@typescript-eslint/eslint-recommended' ,
35
+ 'plugin:@typescript-eslint/recommended'
30
36
] ,
31
37
rules : {
32
38
'no-restricted-properties' : [ 'error' , {
33
39
object : 'window' ,
34
40
property : 'document'
35
- } ]
41
+ } ] ,
42
+ 'class-methods-use-this' : 'warn' ,
43
+ '@typescript-eslint/require-await' : 'off' ,
44
+ '@typescript-eslint/explicit-function-return-type' : 2 ,
45
+ '@typescript-eslint/no-explicit-any' : 'error' ,
46
+ '@typescript-eslint/no-empty-function' : 'error'
36
47
}
37
48
}
38
49
]
39
50
} ;
40
-
41
-
You can’t perform that action at this time.
0 commit comments