Skip to content

Commit a0bab99

Browse files
committed
Bump ecmaVersion and update environment for ESLint
ESLint doesn't recognize `async function` with `ecmaVersion: 6`. Make the environment the same as in jellyfin-web.
1 parent 312d668 commit a0bab99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.eslintrc.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
env:
22
es6: true
33
browser: true
4+
es2017: true
5+
es2020: true
46

57
extends:
68
- "eslint:recommended"
@@ -18,7 +20,7 @@ rules:
1820
promise/no-return-wrap: ["warn"]
1921

2022
parserOptions:
21-
ecmaVersion: 6
23+
ecmaVersion: 2020
2224
sourceType: module
2325

2426
overrides:

0 commit comments

Comments
 (0)