generated from insurgent-lab/javascript-lib-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
39 lines (39 loc) · 901 Bytes
/
.eslintrc.json
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
{
"root": true,
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
},
"env": {
"node": true,
"es2020": true
},
"extends": [
"eslint:recommended",
"plugin:n/recommended",
"plugin:import/recommended",
"plugin:prettier/recommended"
],
"ignorePatterns": ["coverage"],
"rules": {
"n/file-extension-in-import": ["error", "always"]
},
"overrides": [
{
"files": ["tests/**/*.js", "lib/**/*.spec.js"],
"plugins": ["jest"],
"extends": ["plugin:jest/recommended", "plugin:jest/style"],
"rules": {
"jest/no-conditional-expect": "off",
"jest/prefer-expect-assertions": [
"error",
{
"onlyFunctionsWithAsyncKeyword": true,
"onlyFunctionsWithExpectInLoop": true,
"onlyFunctionsWithExpectInCallback": true
}
]
}
}
]
}