@@ -3,12 +3,12 @@ module.exports = {
3
3
plugins : [ "import" ] ,
4
4
parserOptions : {
5
5
ecmaVersion : 2019 ,
6
- sourceType : "module"
6
+ sourceType : "module" ,
7
7
} ,
8
8
env : {
9
9
browser : true ,
10
10
es6 : true ,
11
- commonjs : true
11
+ commonjs : true ,
12
12
} ,
13
13
rules : {
14
14
// =======
@@ -38,8 +38,8 @@ module.exports = {
38
38
"error" ,
39
39
{
40
40
allowShortCircuit : true ,
41
- allowTernary : true
42
- }
41
+ allowTernary : true ,
42
+ } ,
43
43
] ,
44
44
"no-useless-concat" : "error" ,
45
45
"no-void" : "error" ,
@@ -64,8 +64,8 @@ module.exports = {
64
64
"valid-typeof" : [
65
65
"error" ,
66
66
{
67
- requireStringLiterals : true
68
- }
67
+ requireStringLiterals : true ,
68
+ } ,
69
69
] ,
70
70
// for-direction
71
71
// getter-return
@@ -103,8 +103,8 @@ module.exports = {
103
103
"error" ,
104
104
{
105
105
vars : "local" ,
106
- args : "none"
107
- }
106
+ args : "none" ,
107
+ } ,
108
108
] ,
109
109
// no-delete-var
110
110
// no-undef
@@ -114,8 +114,8 @@ module.exports = {
114
114
"no-confusing-arrow" : [
115
115
"error" ,
116
116
{
117
- allowParens : true
118
- }
117
+ allowParens : true ,
118
+ } ,
119
119
] ,
120
120
"no-useless-computed-key" : "error" ,
121
121
"no-useless-rename" : "error" ,
@@ -155,17 +155,17 @@ module.exports = {
155
155
"warn" ,
156
156
"always" ,
157
157
{
158
- null : "ignore"
159
- }
158
+ null : "ignore" ,
159
+ } ,
160
160
] ,
161
161
"guard-for-in" : "warn" ,
162
162
"no-div-regex" : "warn" ,
163
163
"no-else-return" : "warn" ,
164
164
"no-empty-function" : [
165
165
"warn" ,
166
166
{
167
- allow : [ "arrowFunctions" , "functions" , "methods" ]
168
- }
167
+ allow : [ "arrowFunctions" , "functions" , "methods" ] ,
168
+ } ,
169
169
] ,
170
170
"no-extra-label" : "warn" ,
171
171
"no-invalid-this" : "warn" ,
@@ -194,8 +194,8 @@ module.exports = {
194
194
"warn" ,
195
195
{
196
196
destructuring : "all" ,
197
- ignoreReadBeforeAssign : true
198
- }
197
+ ignoreReadBeforeAssign : true ,
198
+ } ,
199
199
] ,
200
200
"prefer-spread" : "warn" ,
201
201
"rest-spread-spacing" : "warn" ,
@@ -223,8 +223,8 @@ module.exports = {
223
223
"warn" ,
224
224
{
225
225
max : 2 ,
226
- maxEOF : 1
227
- }
226
+ maxEOF : 1 ,
227
+ } ,
228
228
] ,
229
229
"no-nested-ternary" : "warn" ,
230
230
"no-trailing-spaces" : "warn" ,
@@ -235,17 +235,17 @@ module.exports = {
235
235
"object-property-newline" : [
236
236
"warn" ,
237
237
{
238
- allowAllPropertiesOnSameLine : true
239
- }
238
+ allowAllPropertiesOnSameLine : true ,
239
+ } ,
240
240
] ,
241
241
"one-var-declaration-per-line" : "warn" ,
242
242
"operator-assignment" : "warn" ,
243
243
quotes : [
244
244
"warn" ,
245
245
"single" ,
246
246
{
247
- allowTemplateLiterals : true
248
- }
247
+ allowTemplateLiterals : true ,
248
+ } ,
249
249
] ,
250
250
semi : "warn" ,
251
251
"semi-spacing" : "warn" ,
@@ -256,8 +256,8 @@ module.exports = {
256
256
{
257
257
anonymous : "never" ,
258
258
named : "never" ,
259
- asyncArrow : "always"
260
- }
259
+ asyncArrow : "always" ,
260
+ } ,
261
261
] ,
262
262
"space-in-parens" : "warn" ,
263
263
"space-infix-ops" : "warn" ,
@@ -268,7 +268,7 @@ module.exports = {
268
268
"unicode-bom" : "warn" ,
269
269
270
270
// eslint-plugin-import
271
- "import/no-duplicates" : "warn"
271
+ "import/no-duplicates" : "warn" ,
272
272
273
273
// =====
274
274
// None
@@ -368,5 +368,5 @@ module.exports = {
368
368
// sort-keys
369
369
// sort-vars
370
370
// wrap-regex
371
- }
371
+ } ,
372
372
} ;
0 commit comments