File tree Expand file tree Collapse file tree 2 files changed +0
-3
lines changed
create-testing-library-rule Expand file tree Collapse file tree 2 files changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,6 @@ export function detectTestingLibraryUtils<
490490 /**
491491 * Determines whether a given node is fireEvent method or not
492492 */
493-
494493 const isFireEventMethod : IsFireEventMethodFn = ( node ) => {
495494 const fireEventUtil =
496495 findImportedTestingLibraryUtilSpecifier ( FIRE_EVENT_NAME ) ;
@@ -527,7 +526,6 @@ export function detectTestingLibraryUtils<
527526
528527 // we know it's defined at this point, but TS seems to think it is not
529528 // so here I'm enforcing it once in order to avoid using "!" operator every time
530-
531529 const definedParentMemberExpression = parentMemberExpression ! ;
532530
533531 // check fireEvent.click() usage
Original file line number Diff line number Diff line change @@ -301,7 +301,6 @@ export function getVariableReferences(
301301 node : TSESTree . Node
302302) : TSESLint . Scope . Reference [ ] {
303303 if ( ASTUtils . isVariableDeclarator ( node ) ) {
304-
305304 return getDeclaredVariables ( context , node ) [ 0 ] ?. references ?. slice ( 1 ) ?? [ ] ;
306305 }
307306
You can’t perform that action at this time.
0 commit comments