@@ -3,8 +3,12 @@ module.exports = {
3
3
plugins : [ 'prettier' , '@typescript-eslint' ] ,
4
4
parser : '@typescript-eslint/parser' ,
5
5
parserOptions : {
6
- createDefaultProgram : true ,
7
- project : './tsconfig.json'
6
+ ecmaVersion : 2018 ,
7
+ sourceType : 'module' ,
8
+ parser : '@typescript-eslint/parser' ,
9
+ project : 'tsconfig.eslint.json' ,
10
+ warnOnUnsupportedTypeScriptVersion : false ,
11
+ tsconfigRootDir : __dirname ,
8
12
} ,
9
13
rules : {
10
14
'prettier/prettier' : 'warn' ,
@@ -18,21 +22,21 @@ module.exports = {
18
22
'@typescript-eslint/explicit-member-accessibility' : [
19
23
'off' ,
20
24
{
21
- accessibility : 'explicit'
22
- }
25
+ accessibility : 'explicit' ,
26
+ } ,
23
27
] ,
24
28
'@typescript-eslint/indent' : [
25
29
'error' ,
26
30
4 ,
27
31
{
28
32
FunctionDeclaration : {
29
- parameters : 'first'
33
+ parameters : 'first' ,
30
34
} ,
31
35
FunctionExpression : {
32
- parameters : 'first'
36
+ parameters : 'first' ,
33
37
} ,
34
- SwitchCase : 1
35
- }
38
+ SwitchCase : 1 ,
39
+ } ,
36
40
] ,
37
41
'@typescript-eslint/interface-name-prefix' : 'off' ,
38
42
'@typescript-eslint/member-delimiter-style' : 'error' ,
@@ -57,8 +61,8 @@ module.exports = {
57
61
'error' ,
58
62
'single' ,
59
63
{
60
- avoidEscape : true
61
- }
64
+ avoidEscape : true ,
65
+ } ,
62
66
] ,
63
67
'@typescript-eslint/semi' : [ 'error' ] ,
64
68
'@typescript-eslint/space-within-parens' : [ 'off' , 'never' ] ,
@@ -84,17 +88,17 @@ module.exports = {
84
88
ignoreCase : false ,
85
89
ignoreDeclarationSort : true ,
86
90
ignoreMemberSort : false ,
87
- memberSyntaxSortOrder : [ 'none' , 'all' , 'multiple' , 'single' ]
88
- }
91
+ memberSyntaxSortOrder : [ 'none' , 'all' , 'multiple' , 'single' ] ,
92
+ } ,
89
93
] ,
90
94
'linebreak-style' : 'off' ,
91
95
'max-classes-per-file' : 'off' ,
92
96
'max-len' : [
93
97
'off' ,
94
98
{
95
99
ignorePattern : '^import |^export {(.*?)}' ,
96
- code : 200
97
- }
100
+ code : 200 ,
101
+ } ,
98
102
] ,
99
103
'new-parens' : 'off' ,
100
104
'newline-per-chained-call' : 'off' ,
@@ -124,9 +128,9 @@ module.exports = {
124
128
'profile' ,
125
129
'profileEnd' ,
126
130
'timeStamp' ,
127
- 'context'
128
- ]
129
- }
131
+ 'context' ,
132
+ ] ,
133
+ } ,
130
134
] ,
131
135
'no-constant-condition' : 'error' ,
132
136
'no-control-regex' : 'off' ,
@@ -147,8 +151,8 @@ module.exports = {
147
151
'no-shadow' : [
148
152
'off' ,
149
153
{
150
- hoist : 'all'
151
- }
154
+ hoist : 'all' ,
155
+ } ,
152
156
] ,
153
157
'no-throw-literal' : 'error' ,
154
158
'no-trailing-spaces' : 'error' ,
@@ -159,8 +163,8 @@ module.exports = {
159
163
'error' ,
160
164
{
161
165
allowTaggedTemplates : true ,
162
- allowShortCircuit : true
163
- }
166
+ allowShortCircuit : true ,
167
+ } ,
164
168
] ,
165
169
'no-unused-labels' : 'error' ,
166
170
'no-var' : 'error' ,
@@ -172,6 +176,6 @@ module.exports = {
172
176
radix : 'error' ,
173
177
'space-before-function-paren' : 'off' ,
174
178
'use-isnan' : 'error' ,
175
- 'valid-typeof' : 'off'
176
- }
179
+ 'valid-typeof' : 'off' ,
180
+ } ,
177
181
} ;
0 commit comments