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/no-this-in-sfc: eslint-plugin-react 7.25.0 interprets an old legacy jQuery plugin as a sfc #3054
Comments
Does this not happen in v7.24.0? |
Yes, it does this not happen in v7.24.0 |
I’d expect this to not be identified as a component since it’s not a PascalCase-named function. |
I found this equivalent false positive. I'm debugging this. Not sure how it broke. obj.notAComponent = function () {
return this.a || null;
};` |
I’ve got a local test case as well i can tack on if you make a PR :-) |
I just noticed that I also modified getStatelessComponent. Well... that explains it :b. |
I get lot's of false positive
react/no-this-in-sfc
warnings in Typescript (*.ts) Files.It seems as if TypeScript files with ts (not just tsx) extension would be regarded as react files and of type
$.fn.<lowercase>... = function (): <type> | null
would be interpreted as ansfc
:The text was updated successfully, but these errors were encountered: