1
1
module . exports = {
2
- extends : '@ethereumjs/eslint-config-defaults' ,
3
- parserOptions : {
4
- project : [ './tsconfig.json' ] ,
5
- } ,
2
+ parser : '@typescript-eslint/parser' ,
3
+ plugins : [ '@typescript-eslint' , 'implicit-dependencies' , 'import' , 'prettier' ] ,
6
4
env : {
7
- mocha : true ,
5
+ es2020 : true ,
6
+ node : true ,
7
+ mocha : true
8
8
} ,
9
+ ignorePatterns : [
10
+ 'node_modules/' ,
11
+ 'dist/' ,
12
+ 'coverage/' ,
13
+ 'prettier.config.js' ,
14
+ 'typedoc.js' ,
15
+ 'karma.conf.js' ,
16
+ ] ,
17
+ extends : [ 'typestrict' , 'eslint:recommended' ] ,
9
18
rules : {
10
- 'no-constant-condition' : 'off' ,
11
- '@typescript-eslint/no-use-before-define' : 'off' ,
19
+ 'no-console' : 'warn' ,
20
+ 'no-debugger' : 'error' ,
21
+ 'prefer-const' : 'error' ,
22
+ 'no-var' : 'error' ,
23
+ 'no-constant-condition' : 'warn' ,
24
+ 'implicit-dependencies/no-implicit' : [ 'error' , { peer : true , dev : true , optional : true } ] ,
25
+ '@typescript-eslint/prefer-nullish-coalescing' : 'error' ,
26
+ '@typescript-eslint/no-use-before-define' : 'warn' ,
27
+ '@typescript-eslint/naming-convention' : [
28
+ 'error' ,
29
+ {
30
+ selector : 'interface' ,
31
+ format : [ 'PascalCase' , 'camelCase' ] ,
32
+ custom : {
33
+ regex : '^I[A-Z]' ,
34
+ match : false ,
35
+ } ,
36
+ } ,
37
+ ] ,
38
+ 'no-unused-vars' : 'off' ,
39
+ '@typescript-eslint/no-unused-vars' : [
40
+ 'error' ,
41
+ { argsIgnorePattern : '^_' , varsIgnorePattern : '^_' } ,
42
+ ] ,
12
43
'@typescript-eslint/no-unnecessary-condition' : 'off' ,
44
+ 'no-dupe-class-members' : 'off' ,
45
+ 'no-extra-semi' : 'off' ,
46
+ 'prettier/prettier' : 'error' ,
47
+ 'no-redeclare' : 'off' ,
48
+ '@typescript-eslint/no-redeclare' : [ 'error' ] ,
49
+ '@typescript-eslint/restrict-plus-operands' : 'off' ,
50
+ 'import/no-default-export' : 'off'
13
51
} ,
14
52
overrides : [
15
53
{
@@ -21,4 +59,9 @@ module.exports = {
21
59
} ,
22
60
} ,
23
61
] ,
62
+ parserOptions : {
63
+ sourceType : 'module' ,
64
+ project : './tsconfig.json' ,
65
+ } ,
24
66
}
67
+
0 commit comments