1
1
module . exports = {
2
- env : {
3
- browser : true
4
- } ,
2
+ extends : [ 'plugin:prettier/recommended' ] ,
3
+ plugins : [ 'prettier' , '@typescript-eslint' ] ,
5
4
parser : '@typescript-eslint/parser' ,
6
5
parserOptions : {
7
6
createDefaultProgram : true ,
8
- project : 'tsconfig.json' ,
9
- sourceType : 'module'
7
+ project : './tsconfig.json' ,
10
8
} ,
11
- plugins : [ '@typescript-eslint' ] ,
12
9
rules : {
10
+ 'prettier/prettier' : 'warn' ,
13
11
'@typescript-eslint/adjacent-overload-signatures' : 'error' ,
14
12
'@typescript-eslint/array-type' : 'error' ,
15
13
'@typescript-eslint/await-thenable' : 'error' ,
@@ -20,22 +18,10 @@ module.exports = {
20
18
'@typescript-eslint/explicit-member-accessibility' : [
21
19
'off' ,
22
20
{
23
- accessibility : 'explicit'
24
- }
25
- ] ,
26
- '@typescript-eslint/indent' : [
27
- 'error' ,
28
- 4 ,
29
- {
30
- FunctionDeclaration : {
31
- parameters : 'first'
32
- } ,
33
- FunctionExpression : {
34
- parameters : 'first'
35
- } ,
36
- SwitchCase :1
37
- }
21
+ accessibility : 'explicit' ,
22
+ } ,
38
23
] ,
24
+
39
25
'@typescript-eslint/interface-name-prefix' : 'off' ,
40
26
'@typescript-eslint/member-delimiter-style' : 'error' ,
41
27
'@typescript-eslint/member-ordering' : 'off' ,
@@ -59,8 +45,8 @@ module.exports = {
59
45
'error' ,
60
46
'single' ,
61
47
{
62
- avoidEscape : true
63
- }
48
+ avoidEscape : true ,
49
+ } ,
64
50
] ,
65
51
'@typescript-eslint/semi' : [ 'error' ] ,
66
52
'@typescript-eslint/space-within-parens' : [ 'off' , 'never' ] ,
@@ -86,19 +72,17 @@ module.exports = {
86
72
ignoreCase : false ,
87
73
ignoreDeclarationSort : true ,
88
74
ignoreMemberSort : false ,
89
- memberSyntaxSortOrder : [ 'none' , 'all' , 'multiple' , 'single' ]
90
- }
75
+ memberSyntaxSortOrder : [ 'none' , 'all' , 'multiple' , 'single' ] ,
76
+ } ,
91
77
] ,
92
78
'linebreak-style' : 'off' ,
93
79
'max-classes-per-file' : 'off' ,
94
80
'max-len' : [
95
- 1 ,
81
+ 'off' ,
96
82
{
97
- // ignorePattern: '^import |^export {(.*?)}',
98
- code : 130 ,
99
- 'ignoreRegExpLiterals' : true ,
100
- 'ignoreComments' : true
101
- }
83
+ ignorePattern : '^import |^export {(.*?)}' ,
84
+ code : 200 ,
85
+ } ,
102
86
] ,
103
87
'new-parens' : 'off' ,
104
88
'newline-per-chained-call' : 'off' ,
@@ -128,9 +112,9 @@ module.exports = {
128
112
'profile' ,
129
113
'profileEnd' ,
130
114
'timeStamp' ,
131
- 'context'
132
- ]
133
- }
115
+ 'context' ,
116
+ ] ,
117
+ } ,
134
118
] ,
135
119
'no-constant-condition' : 'error' ,
136
120
'no-control-regex' : 'off' ,
@@ -145,14 +129,14 @@ module.exports = {
145
129
'no-irregular-whitespace' : 'off' ,
146
130
'no-multiple-empty-lines' : 'off' ,
147
131
'no-new-wrappers' : 'error' ,
148
- 'no-redeclare' : 'error' ,
132
+ 'no-redeclare' : [ 'error' , { builtinGlobals : false } ] ,
149
133
'no-regex-spaces' : 'error' ,
150
134
'no-return-await' : 'error' ,
151
135
'no-shadow' : [
152
136
'off' ,
153
137
{
154
- hoist : 'all'
155
- }
138
+ hoist : 'all' ,
139
+ } ,
156
140
] ,
157
141
'no-throw-literal' : 'error' ,
158
142
'no-trailing-spaces' : 'error' ,
@@ -163,8 +147,8 @@ module.exports = {
163
147
'error' ,
164
148
{
165
149
allowTaggedTemplates : true ,
166
- allowShortCircuit : true
167
- }
150
+ allowShortCircuit : true ,
151
+ } ,
168
152
] ,
169
153
'no-unused-labels' : 'error' ,
170
154
'no-var' : 'error' ,
@@ -176,6 +160,6 @@ module.exports = {
176
160
radix : 'error' ,
177
161
'space-before-function-paren' : 'off' ,
178
162
'use-isnan' : 'error' ,
179
- 'valid-typeof' : 'off'
180
- }
163
+ 'valid-typeof' : 'off' ,
164
+ } ,
181
165
} ;
0 commit comments