1
1
module . exports = {
2
- " env" : {
3
- " browser" : true ,
4
- " es6" : true ,
5
- " node" : true
2
+ env : {
3
+ browser : true ,
4
+ es6 : true ,
5
+ node : true
6
6
} ,
7
- " parser" : "@typescript-eslint/parser" ,
8
- " parserOptions" : {
9
- " project" : "tsconfig.json" ,
10
- " sourceType" : "module"
7
+ parser : "@typescript-eslint/parser" ,
8
+ parserOptions : {
9
+ project : "tsconfig.json" ,
10
+ sourceType : "module"
11
11
} ,
12
- " plugins" : [
12
+ plugins : [
13
13
"@typescript-eslint" ,
14
14
"jsdoc" ,
15
15
"import"
16
16
] ,
17
- " extends" : [
17
+ extends : [
18
18
"eslint:recommended" ,
19
19
"plugin:@typescript-eslint/recommended" ,
20
20
"plugin:import/recommended" ,
21
21
"plugin:import/typescript"
22
22
] ,
23
- " overrides" : [
23
+ overrides : [
24
24
{
25
- " files" : [
25
+ files : [
26
26
"**/*.spec.ts"
27
27
] ,
28
- " rules" : {
28
+ rules : {
29
29
"max-lines" : "off" ,
30
30
"max-lines-per-function" : "off" ,
31
31
"no-unused-expressions" : "off" ,
32
32
"max-nested-callbacks" : "off"
33
33
}
34
34
}
35
35
] ,
36
- " rules" : {
36
+ rules : {
37
37
"@typescript-eslint/array-type" : [
38
38
"error" ,
39
39
{
40
- " default" : "array-simple"
40
+ default : "array-simple"
41
41
}
42
42
] ,
43
43
"@typescript-eslint/ban-types" : [
44
44
"error" ,
45
45
{
46
- " types" : {
47
- " Object" : "Avoid using the `Object` type. Did you mean `object`?" ,
48
- " Function" : "Avoid using the `Function` type. Prefer a specific function type, like `() => void`." ,
49
- " Boolean" : "Avoid using the `Boolean` type. Did you mean `boolean`?" ,
50
- " Number" : "Avoid using the `Number` type. Did you mean `number`?" ,
51
- " String" : "Avoid using the `String` type. Did you mean `string`?" ,
52
- " Symbol" : "Avoid using the `Symbol` type. Did you mean `symbol`?"
46
+ types : {
47
+ Object : "Avoid using the `Object` type. Did you mean `object`?" ,
48
+ Function : "Avoid using the `Function` type. Prefer a specific function type, like `() => void`." ,
49
+ Boolean : "Avoid using the `Boolean` type. Did you mean `boolean`?" ,
50
+ Number : "Avoid using the `Number` type. Did you mean `number`?" ,
51
+ String : "Avoid using the `String` type. Did you mean `string`?" ,
52
+ Symbol : "Avoid using the `Symbol` type. Did you mean `symbol`?"
53
53
}
54
54
}
55
55
] ,
56
56
"@typescript-eslint/explicit-member-accessibility" : [
57
57
"error" ,
58
58
{
59
- " overrides" : {
60
- " constructors" : "off"
59
+ overrides : {
60
+ constructors : "off"
61
61
}
62
62
}
63
63
] ,
@@ -66,14 +66,14 @@ module.exports = {
66
66
"@typescript-eslint/naming-convention" : [
67
67
"error" ,
68
68
{
69
- " selector" : "typeLike" ,
70
- " format" : [
69
+ selector : "typeLike" ,
70
+ format : [
71
71
"PascalCase"
72
72
]
73
73
} ,
74
74
{
75
- " selector" : "variable" ,
76
- " format" : [
75
+ selector : "variable" ,
76
+ format : [
77
77
"camelCase" ,
78
78
"PascalCase" ,
79
79
"UPPER_CASE"
@@ -102,29 +102,29 @@ module.exports = {
102
102
"error" ,
103
103
"always" ,
104
104
{
105
- " null" : "ignore"
105
+ null : "ignore"
106
106
}
107
107
] ,
108
108
"indent" : [
109
109
"error" ,
110
110
"tab" ,
111
111
{
112
- " ignoreComments" : true ,
113
- " SwitchCase" : 1
112
+ ignoreComments : true ,
113
+ SwitchCase : 1
114
114
}
115
115
] ,
116
116
"max-len" : [
117
117
"error" ,
118
118
{
119
- " code" : 120 ,
120
- " ignoreComments" : true
119
+ code : 120 ,
120
+ ignoreComments : true
121
121
}
122
122
] ,
123
123
"max-lines-per-function" : [
124
124
"error" ,
125
125
{
126
- " max" : 50 ,
127
- " skipComments" : true
126
+ max : 50 ,
127
+ skipComments : true
128
128
}
129
129
] ,
130
130
"max-lines" : [
@@ -159,25 +159,25 @@ module.exports = {
159
159
"error" ,
160
160
"double" ,
161
161
{
162
- " avoidEscape" : true
162
+ avoidEscape : true
163
163
}
164
164
] ,
165
165
"radix" : "error" ,
166
166
"semi" : "error" ,
167
167
"space-before-function-paren" : [
168
168
"error" ,
169
169
{
170
- " anonymous" : "ignore" ,
171
- " named" : "ignore" ,
172
- " asyncArrow" : "always"
170
+ anonymous : "ignore" ,
171
+ named : "ignore" ,
172
+ asyncArrow : "always"
173
173
}
174
174
] ,
175
175
"space-infix-ops" : "error" ,
176
176
"space-unary-ops" : [
177
177
"error" ,
178
178
{
179
- " words" : true ,
180
- " nonwords" : false
179
+ words : true ,
180
+ nonwords : false
181
181
}
182
182
] ,
183
183
"spaced-comment" : "error" ,
@@ -190,7 +190,7 @@ module.exports = {
190
190
"error" ,
191
191
"always" ,
192
192
{
193
- " exceptAfterSingleLine" : true
193
+ exceptAfterSingleLine : true
194
194
}
195
195
] ,
196
196
"max-nested-callbacks" : [
@@ -199,7 +199,7 @@ module.exports = {
199
199
] ,
200
200
"max-statements-per-line" : "error"
201
201
} ,
202
- " ignorePatterns" : [
202
+ ignorePatterns : [
203
203
"frontend/**/*"
204
204
]
205
205
} ;
0 commit comments