Skip to content

Commit 56043ad

Browse files
committed
Update eslint config
1 parent 05f17e7 commit 56043ad

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.eslintrc.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
"es6": true,
55
"node": true
66
},
7-
"globals": {
8-
"SharedArrayBuffer": true
9-
},
107
"extends": "eslint:recommended",
118
"parserOptions": {
12-
"ecmaVersion": 2018
9+
"ecmaVersion": 2020
10+
},
11+
"globals": {
12+
"BigInt": true,
13+
"SharedArrayBuffer": true
1314
},
1415
"rules": {
1516
"indent": [
1617
"error",
17-
2,
18-
{ "SwitchCase": 1 }
18+
2
1919
],
2020
"linebreak-style": [
2121
"error",
@@ -29,7 +29,6 @@
2929
"error",
3030
"always"
3131
],
32-
"no-console": "off",
3332
"no-loop-func": [
3433
"error"
3534
],
@@ -117,6 +116,9 @@
117116
"new-parens": [
118117
"error"
119118
],
119+
"no-lonely-if": [
120+
"error"
121+
],
120122
"no-trailing-spaces": [
121123
"error"
122124
],
@@ -212,7 +214,7 @@
212214
],
213215
"arrow-parens": [
214216
"error",
215-
"as-needed"
217+
"always"
216218
],
217219
"arrow-body-style": [
218220
"error",
@@ -264,4 +266,4 @@
264266
"never"
265267
]
266268
}
267-
}
269+
}

0 commit comments

Comments
 (0)