This repository has been archived by the owner on Mar 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
64 lines (64 loc) · 1.61 KB
/
.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"prettier"
],
"plugins": ["react", "prettier", "react-hooks", "cypress"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"sourceType": "module",
"babelOptions": {
"presets": ["@babel/preset-react"]
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"globals": {
"process": true
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"prettier/prettier": "error",
"react/jsx-filename-extension": 0,
"react/require-default-props": 0,
"react/sort-comp": 0,
"react/destructuring-assignment": 0,
"react/no-access-state-in-setstate": 0,
"react/no-danger": 0,
"react/no-array-index-key": "warn",
"no-useless-constructor": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"no-unused-vars": ["error", { "ignoreRestSiblings": true }]
},
"overrides": [
{
"files": ["**/*.{spec,test}.js"],
"rules": {
"prettier/prettier": "warn",
"no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"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"
},
"env": {
"cypress/globals": true,
"node": true
}
}
]
}