Skip to content

no-debug does not detect screen.debug() if screen is not last import in list #174

Closed
@stefcameron

Description

@stefcameron

Love that no-debug rule, however:

import { render, screen } from '@testing-library/react';
// OR just (but not very useful): import { screen } from '@testing-library/react';
...
screen.debug(); // IS detected as lint

where as

import { screen, render } from '@testing-library/react';
...
screen.debug(); // is NOT detected as lint -- and should be

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions