Commit eb781eb 1 parent 570a644 commit eb781eb Copy full SHA for eb781eb
File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,9 @@ exports[`rules should export configs that refer to actual rules 1`] = `
91
91
},
92
92
},
93
93
" style" : {
94
+ " env" : {
95
+ " jest/globals" : true ,
96
+ },
94
97
" plugins" : [
95
98
" jest" ,
96
99
],
Original file line number Diff line number Diff line change @@ -68,15 +68,12 @@ export = {
68
68
configs : {
69
69
all : createConfig ( allRules ) ,
70
70
recommended : createConfig ( recommendedRules ) ,
71
- style : {
72
- plugins : [ 'jest' ] ,
73
- rules : {
74
- 'jest/no-alias-methods' : 'warn' ,
75
- 'jest/prefer-to-be' : 'error' ,
76
- 'jest/prefer-to-contain' : 'error' ,
77
- 'jest/prefer-to-have-length' : 'error' ,
78
- } ,
79
- } ,
71
+ style : createConfig ( {
72
+ 'jest/no-alias-methods' : 'warn' ,
73
+ 'jest/prefer-to-be' : 'error' ,
74
+ 'jest/prefer-to-contain' : 'error' ,
75
+ 'jest/prefer-to-have-length' : 'error' ,
76
+ } ) ,
80
77
} ,
81
78
environments : {
82
79
globals : {
You can’t perform that action at this time.
0 commit comments