-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
45 lines (45 loc) · 996 Bytes
/
.eslintrc
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
44
45
{
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"env": {
"es6": true,
"shared-node-browser": true
},
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"rules": {
"func-names": "off",
"no-param-reassign": "warn",
"no-restricted-syntax": ["error", "ArrayPattern"],
"global-require": "warn",
"sort-keys": "error",
"no-continue": "off",
"no-labels": "off",
"no-label-var": "off",
"no-void": "off",
"no-undefined": "error",
"prettier/prettier": "error"
},
"overrides": [
{
"files": ["src/__tests__/**/*.mjs"],
"extends": ["plugin:chai-expect/recommended"],
"env": {
"mocha": true,
"node": true
},
"globals": {
"expect": true
},
"plugins": [
"chai-expect",
"chai-friendly"
],
"rules": {
"no-unused-expressions": 0,
"chai-friendly/no-unused-expressions": 2
}
}
]
}