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
[prefer-stateless-function] not work with @typescript-eslint/parser #2187
Comments
Can you provide the code this is failing on? |
hi, @ljharb. this is my code: import * as React from 'react';
export interface IAvatarItemProps {
tips: React.ReactNode;
src: string;
style?: React.CSSProperties;
}
export default class AvatarItem extends React.Component<IAvatarItemProps, any> {
constructor(props: IAvatarItemProps);
} |
Thanks! (as an aside; you'll want to enable esModuleInterop and synthetic imports; |
thanks for your correction @ljharb 👍 |
This bug happens because |
It seems more likely that this plugin's rules just don't anticipate something that would never be valid in JS. |
The text was updated successfully, but these errors were encountered: