Skip to content

Commit 41dff30

Browse files
committed
Update eslint config
1 parent 94852a2 commit 41dff30

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Diff for: .eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

Diff for: .eslintrc.json

+9-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
},
77
"extends": "eslint:recommended",
88
"parserOptions": {
9-
"ecmaVersion": 2018
9+
"ecmaVersion": 2020
10+
},
11+
"globals": {
12+
"BigInt": true
1013
},
1114
"rules": {
1215
"indent": [
@@ -25,7 +28,6 @@
2528
"error",
2629
"always"
2730
],
28-
"no-console": "off",
2931
"no-loop-func": [
3032
"error"
3133
],
@@ -113,6 +115,9 @@
113115
"new-parens": [
114116
"error"
115117
],
118+
"no-lonely-if": [
119+
"error"
120+
],
116121
"no-trailing-spaces": [
117122
"error"
118123
],
@@ -208,7 +213,7 @@
208213
],
209214
"arrow-parens": [
210215
"error",
211-
"as-needed"
216+
"always"
212217
],
213218
"arrow-body-style": [
214219
"error",
@@ -260,4 +265,4 @@
260265
"never"
261266
]
262267
}
263-
}
268+
}

0 commit comments

Comments
 (0)