1
1
module . exports = {
2
- plugins : [ 'github' , 'prettier' , 'eslint-comments' ] ,
2
+ parserOptions : {
3
+ ecmaFeatures : {
4
+ ecmaVersion : 6
5
+ } ,
6
+ sourceType : 'module'
7
+ } ,
3
8
env : {
4
- commonjs : true
9
+ es6 : true
5
10
} ,
11
+ plugins : [ 'github' , 'prettier' , 'eslint-comments' , 'import' ] ,
6
12
rules : {
7
13
'constructor-super' : 'error' ,
8
14
'eslint-comments/disable-enable-pair' : 'off' ,
@@ -13,7 +19,31 @@ module.exports = {
13
19
'eslint-comments/no-unused-enable' : 'error' ,
14
20
'eslint-comments/no-use' : [ 'error' , { allow : [ 'eslint' , 'eslint-disable-next-line' , 'eslint-env' , 'globals' ] } ] ,
15
21
'func-style' : [ 'error' , 'declaration' , { allowArrowFunctions : true } ] ,
22
+ 'github/array-foreach' : 'error' ,
16
23
'github/no-implicit-buggy-globals' : 'error' ,
24
+ 'import/default' : 'error' ,
25
+ 'import/export' : 'error' ,
26
+ 'import/first' : 'error' ,
27
+ 'import/named' : 'error' ,
28
+ 'import/namespace' : 'error' ,
29
+ 'import/no-absolute-path' : 'error' ,
30
+ 'import/no-anonymous-default-export' : [
31
+ 'error' ,
32
+ {
33
+ allowAnonymousClass : false ,
34
+ allowAnonymousFunction : false ,
35
+ allowArray : true ,
36
+ allowArrowFunction : false ,
37
+ allowLiteral : true ,
38
+ allowObject : true
39
+ }
40
+ ] ,
41
+ 'import/no-deprecated' : 'error' ,
42
+ 'import/no-duplicates' : 'error' ,
43
+ 'import/no-mutable-exports' : 'error' ,
44
+ 'import/no-named-as-default' : 'error' ,
45
+ 'import/no-named-as-default-member' : 'error' ,
46
+ 'import/no-namespace' : 'error' ,
17
47
'no-case-declarations' : 'error' ,
18
48
'no-class-assign' : 'error' ,
19
49
'no-compare-neg-zero' : 'error' ,
@@ -61,13 +91,25 @@ module.exports = {
61
91
'no-unused-vars' : 'error' ,
62
92
'no-useless-concat' : 'error' ,
63
93
'no-useless-escape' : 'error' ,
94
+ 'no-var' : 'error' ,
64
95
'object-shorthand' : [ 'error' , 'always' , { avoidQuotes : true } ] ,
96
+ 'prefer-const' : 'error' ,
65
97
'prefer-promise-reject-errors' : 'error' ,
98
+ 'prefer-rest-params' : 'error' ,
99
+ 'prefer-spread' : 'error' ,
100
+ 'prefer-template' : 'error' ,
66
101
'prettier/prettier' : 'error' ,
67
102
'require-yield' : 'error' ,
68
103
'use-isnan' : 'error' ,
69
104
'valid-typeof' : 'error' ,
70
105
camelcase : [ 'error' , { properties : 'always' } ] ,
71
106
eqeqeq : [ 'error' , 'smart' ]
107
+ } ,
108
+ settings : {
109
+ 'import/resolver' : {
110
+ node : {
111
+ extensions : [ '.js' , '.ts' ]
112
+ }
113
+ }
72
114
}
73
115
}
0 commit comments