Skip to content

Commit 1e37885

Browse files
committed
Update eslint config
1 parent df40294 commit 1e37885

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.eslintrc.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@
44
"es6": true,
55
"node": true
66
},
7-
"globals": {
8-
"memory": true
9-
},
107
"extends": "eslint:recommended",
118
"parserOptions": {
12-
"ecmaVersion": 2018
9+
"ecmaVersion": 2020
10+
},
11+
"globals": {
12+
"BigInt": true
1313
},
1414
"rules": {
1515
"indent": [
1616
"error",
17-
2,
18-
{ "SwitchCase": 1 }
17+
2
1918
],
2019
"linebreak-style": [
2120
"error",
@@ -29,7 +28,6 @@
2928
"error",
3029
"always"
3130
],
32-
"no-console": "off",
3331
"no-loop-func": [
3432
"error"
3533
],
@@ -117,6 +115,9 @@
117115
"new-parens": [
118116
"error"
119117
],
118+
"no-lonely-if": [
119+
"error"
120+
],
120121
"no-trailing-spaces": [
121122
"error"
122123
],
@@ -212,7 +213,7 @@
212213
],
213214
"arrow-parens": [
214215
"error",
215-
"as-needed"
216+
"always"
216217
],
217218
"arrow-body-style": [
218219
"error",
@@ -264,4 +265,4 @@
264265
"never"
265266
]
266267
}
267-
}
268+
}

0 commit comments

Comments
 (0)