Skip to content

Commit 9f9dd6c

Browse files
committed
Update eslint config
1 parent a64ed2c commit 9f9dd6c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.eslintrc.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"extends": "eslint:recommended",
88
"parserOptions": {
9-
"ecmaVersion": 2018
9+
"ecmaVersion": 2020
1010
},
1111
"rules": {
1212
"indent": [
@@ -113,6 +113,9 @@
113113
"new-parens": [
114114
"error"
115115
],
116+
"no-lonely-if": [
117+
"error"
118+
],
116119
"no-trailing-spaces": [
117120
"error"
118121
],
@@ -148,7 +151,7 @@
148151
"space-before-function-paren": [
149152
"error",
150153
{
151-
"anonymous": "always",
154+
"anonymous": "never",
152155
"named": "never",
153156
"asyncArrow": "always"
154157
}
@@ -260,4 +263,4 @@
260263
"never"
261264
]
262265
}
263-
}
266+
}

0 commit comments

Comments
 (0)