Skip to content

Commit 27897ae

Browse files
committed
Update eslint config
1 parent 05d7c23 commit 27897ae

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.eslintrc.json

+10-6
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66
},
77
"extends": "eslint:recommended",
88
"parserOptions": {
9-
"ecmaVersion": 2018
9+
"ecmaVersion": 2020
10+
},
11+
"globals": {
12+
"BigInt": true
1013
},
1114
"rules": {
1215
"indent": [
1316
"error",
14-
2,
15-
{ "SwitchCase": 1 }
17+
2
1618
],
1719
"linebreak-style": [
1820
"error",
@@ -26,7 +28,6 @@
2628
"error",
2729
"always"
2830
],
29-
"no-console": "off",
3031
"no-loop-func": [
3132
"error"
3233
],
@@ -114,6 +115,9 @@
114115
"new-parens": [
115116
"error"
116117
],
118+
"no-lonely-if": [
119+
"error"
120+
],
117121
"no-trailing-spaces": [
118122
"error"
119123
],
@@ -209,7 +213,7 @@
209213
],
210214
"arrow-parens": [
211215
"error",
212-
"as-needed"
216+
"always"
213217
],
214218
"arrow-body-style": [
215219
"error",
@@ -261,4 +265,4 @@
261265
"never"
262266
]
263267
}
264-
}
268+
}

0 commit comments

Comments
 (0)