Skip to content

Exclude tests #15

@TrevorBurnham

Description

@TrevorBurnham

First off, great work on this plugin! It's a lifesaver.

One suggestion: Currently, the plugin seems to want to add 'use client' to the top of every test file that uses JSX. Of course, users could configure ESLint to only apply the plugin to non-test files, but that can be tricky. It'd be great if there was some heuristic that the plugin could use to determine what's a test and what isn't. As a first approximation, I think you could safely ignore all files that don't have any exports.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions