Skip to content

Commit eb1dc24

Browse files
committed
Update eslint config
1 parent e64b346 commit eb1dc24

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.eslintrc.json

Lines changed: 8 additions & 2 deletions
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": [
@@ -112,6 +115,9 @@
112115
"new-parens": [
113116
"error"
114117
],
118+
"no-lonely-if": [
119+
"error"
120+
],
115121
"no-trailing-spaces": [
116122
"error"
117123
],
@@ -147,7 +153,7 @@
147153
"space-before-function-paren": [
148154
"error",
149155
{
150-
"anonymous": "always",
156+
"anonymous": "never",
151157
"named": "never",
152158
"asyncArrow": "always"
153159
}

0 commit comments

Comments
 (0)