@@ -188,36 +188,36 @@ module.exports = () => {
188188
189189 /* eslint quote-props: [2, "as-needed"] */
190190 const predefinedRules = {
191- ImportDeclaration : node => {
191+ ImportDeclaration ( node ) {
192192 if ( ! isTestFile && avaImportDeclarationAsts . some ( ast => isDeepStrictEqual ( espurify ( node ) , ast ) ) ) {
193193 isTestFile = true ;
194194 }
195195 } ,
196- VariableDeclarator : node => {
196+ VariableDeclarator ( node ) {
197197 if ( ! isTestFile && avaVariableDeclaratorAsts . some ( ast => isDeepStrictEqual ( espurify ( node ) , ast ) ) ) {
198198 isTestFile = true ;
199199 }
200200 } ,
201- CallExpression : node => {
201+ CallExpression ( node ) {
202202 if ( isTestFunctionCall ( node . callee ) ) {
203203 // Entering test function
204204 currentTestNode = node ;
205205 }
206206 } ,
207- 'CallExpression:exit' : node => {
207+ 'CallExpression:exit' ( node ) {
208208 if ( currentTestNode === node ) {
209209 // Leaving test function
210210 currentTestNode = undefined ;
211211 }
212212 } ,
213- 'Program:exit' : ( ) => {
213+ 'Program:exit' ( ) {
214214 isTestFile = false ;
215215 } ,
216216 } ;
217217
218218 return {
219219 hasTestModifier : mod => getTestModifierNames ( currentTestNode ) . includes ( mod ) ,
220- hasNoUtilityModifier : ( ) => {
220+ hasNoUtilityModifier ( ) {
221221 const modifiers = getTestModifierNames ( currentTestNode ) ;
222222 return ! modifiers . includes ( 'before' )
223223 && ! modifiers . includes ( 'beforeEach' )
0 commit comments