10000 Update eslint config · HowProgrammingWorks/Sandboxes@8e4a40b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e4a40b

Browse files
committed
Update eslint config
1 parent 718bed2 commit 8e4a40b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.eslintrc.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
},
77
"extends": "eslint:recommended",
88
"parserOptions": {
9-
"ecmaVersion": 2020
9+
"ecmaVersion": "latest"
1010
},
1111
"globals": {
12-
"BigInt": true,
13-
"api": true
12+
"api": true,
13+
"BigInt": true
1414
},
1515
"rules": {
1616
"indent": [
@@ -264,6 +264,10 @@
264264
"template-curly-spacing": [
265265
"error",
266266
"never"
267+
],
268+
"consistent-return": [
269+
"error",
270+
{ "treatUndefinedAsUnspecified": true }
267271
]
268272
}
269273
}

0 commit comments

Comments
 (0)
0