forked from thoughtworks/build-your-own-radar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
30 lines (30 loc) · 797 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
{
"env": {
"node": true,
"es2021": true,
"jest": true,
"cypress/globals": true
},
"extends": ["eslint:recommended", "prettier", "plugin:jest/recommended"],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"cypress/no-assigning-return-values": "error",
"cypress/no-unnecessary-waiting": "error",
"cypress/assertion-before-screenshot": "warn",
"cypress/no-force": "warn",
"cypress/no-async-tests": "error",
"cypress/no-pause": "error",
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "off",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error",
"jest/expect-expect": "off"
},
"globals": {
"jest": true
},
"plugins": ["jest", "cypress"]
}