forked from jellyfin-archive/jellyfin-apiclient-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
43 lines (38 loc) · 753 Bytes
/
.eslintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
env:
es6: true
browser: true
es2017: true
es2020: true
extends:
- "eslint:recommended"
- "plugin:promise/recommended"
- "plugin:import/errors"
- "plugin:import/warnings"
plugins:
- "promise"
- "import"
rules:
promise/always-return: ["warn"]
promise/catch-or-return: ["warn"]
promise/no-return-wrap: ["warn"]
parserOptions:
ecmaVersion: 2020
sourceType: module
overrides:
- files:
- "src/**/*.js"
rules:
no-var: ["warn"]
no-undef: ["warn"]
prefer-rest-params: ["warn"]
prefer-const: ["warn"]
no-unused-vars: ["warn"]
- files:
"tests/**/*.js"
env:
jest: true
extends:
- "plugin:jest/recommended"
- "plugin:jest/style"
plugins:
- jest