File tree 2 files changed +17
-13
lines changed
2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ root : true ,
3
+ extends : [ 'plugin:cypress/recommended' ] ,
4
+ env : {
5
+ 'cypress/globals' : true ,
6
+ } ,
7
+ plugins : [ 'cypress' ] ,
8
+ rules : {
9
+ // Add cypress specific rules here
10
+ 'cypress/no-assigning-return-values' : 'error' ,
11
+ 'cypress/no-unnecessary-waiting' : 'error' ,
12
+ 'cypress/assertion-before-screenshot' : 'warn' ,
13
+ 'cypress/no-force' : 'warn' ,
14
+ 'cypress/no-async-tests' : 'error' ,
15
+ } ,
16
+ } ;
Original file line number Diff line number Diff line change @@ -14,16 +14,10 @@ module.exports = {
14
14
'@elastic/eslint-config-kibana' ,
15
15
'plugin:@elastic/eui/recommended' ,
16
16
'plugin:react-hooks/recommended' ,
17
- "plugin:cypress/recommended" ,
18
17
'plugin:jest/recommended' ,
19
18
'plugin:prettier/recommended' ,
20
19
] ,
21
- env : {
22
- 'cypress/globals' : true ,
23
- } ,
24
- plugins : [
25
- 'cypress' ,
26
- ] ,
20
+
27
21
rules : {
28
22
'@typescript-eslint/no-unused-vars' : [
29
23
'error' ,
@@ -45,12 +39,6 @@ module.exports = {
45
39
] ,
46
40
} ,
47
41
] ,
48
- // Add cypress specific rules here
49
- 'cypress/no-assigning-return-values' : 'error' ,
50
- 'cypress/no-unnecessary-waiting' : 'error' ,
51
- 'cypress/assertion-before-screenshot' : 'warn' ,
52
- 'cypress/no-force' : 'warn' ,
53
- 'cypress/no-async-tests' : 'error' ,
54
42
} ,
55
43
overrides : [
56
44
{
You can’t perform that action at this time.
0 commit comments