Skip to content

react/require-render-return fires for non-react code #287

@tonioloewald

Description

@tonioloewald

What version of this package are you using?
12.0.1

What operating system, Node.js, and npm version?
macOS, 16.18.1, 9.6.0

What happened?
When I lint code that creates a custom element by subclassing a class named Component, I get an error because the subclass's render method (which is declared as void) doesn't return something. It shouldn't return anything. TypeScript is not React and in any event non-React code shouldn't be assumed to be React code.

What did you expect to happen?
This code is fine. No errors should be thrown.

Are you willing to submit a pull request to fix this bug?
No.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions