@@ -188,36 +188,36 @@ module.exports = () => {
188
188
189
189
/* eslint quote-props: [2, "as-needed"] */
190
190
const predefinedRules = {
191
- ImportDeclaration : node => {
191
+ ImportDeclaration ( node ) {
192
192
if ( ! isTestFile && avaImportDeclarationAsts . some ( ast => isDeepStrictEqual ( espurify ( node ) , ast ) ) ) {
193
193
isTestFile = true ;
194
194
}
195
195
} ,
196
- VariableDeclarator : node => {
196
+ VariableDeclarator ( node ) {
197
197
if ( ! isTestFile && avaVariableDeclaratorAsts . some ( ast => isDeepStrictEqual ( espurify ( node ) , ast ) ) ) {
198
198
isTestFile = true ;
199
199
}
200
200
} ,
201
- CallExpression : node => {
201
+ CallExpression ( node ) {
202
202
if ( isTestFunctionCall ( node . callee ) ) {
203
203
// Entering test function
204
204
currentTestNode = node ;
205
205
}
206
206
} ,
207
- 'CallExpression:exit' : node => {
207
+ 'CallExpression:exit' ( node ) {
208
208
if ( currentTestNode === node ) {
209
209
// Leaving test function
210
210
currentTestNode = undefined ;
211
211
}
212
212
} ,
213
- 'Program:exit' : ( ) => {
213
+ 'Program:exit' ( ) {
214
214
isTestFile = false ;
215
215
} ,
216
216
} ;
217
217
218
218
return {
219
219
hasTestModifier : mod => getTestModifierNames ( currentTestNode ) . includes ( mod ) ,
220
- hasNoUtilityModifier : ( ) => {
220
+ hasNoUtilityModifier ( ) {
221
221
const modifiers = getTestModifierNames ( currentTestNode ) ;
222
222
return ! modifiers . includes ( 'before' )
223
223
&& ! modifiers . includes ( 'beforeEach' )
0 commit comments