Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tonioloewald opened this issue Mar 20, 2023 · 0 comments
Open

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

tonioloewald opened this issue Mar 20, 2023 · 0 comments

Comments

@tonioloewald
Copy link

tonioloewald commented Mar 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant