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<
490
490
/**
491
491
* Determines whether a given node is fireEvent method or not
492
492
*/
493
-
494
493
const isFireEventMethod : IsFireEventMethodFn = ( node ) => {
495
494
const fireEventUtil =
496
495
findImportedTestingLibraryUtilSpecifier ( FIRE_EVENT_NAME ) ;
@@ -527,7 +526,6 @@ export function detectTestingLibraryUtils<
527
526
528
527
// we know it's defined at this point, but TS seems to think it is not
529
528
// so here I'm enforcing it once in order to avoid using "!" operator every time
530
-
531
529
const definedParentMemberExpression = parentMemberExpression ! ;
532
530
533
531
// check fireEvent.click() usage
Original file line number Diff line number Diff line change @@ -301,7 +301,6 @@ export function getVariableReferences(
301
301
node : TSESTree . Node
302
302
) : TSESLint . Scope . Reference [ ] {
303
303
if ( ASTUtils . isVariableDeclarator ( node ) ) {
304
-
305
304
return getDeclaredVariables ( context , node ) [ 0 ] ?. references ?. slice ( 1 ) ?? [ ] ;
306
305
}
307
306
You can’t perform that action at this time.
0 commit comments