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