DEV Community

Discussion on: The Best ESLint Rules for React Projects

Collapse
 
hyochan profile image
Hyo

Thank you! It really helps!
I also applied the rules in github.com/dooboolab-community/esl...

The only difference is that I prefer function-declaration in react/function-component-definition.

Also, I found a bug in react/no-unused-prop-types.

Image description

You can see the false negative in above screenshot 🤔

Collapse
 
timwjames profile image
TimJ

It looks like false negatives for react/no-unused-prop-types is a known issue: github.com/jsx-eslint/eslint-plugi.... Given that it doesn't work with React.FC types anyway, I'm considering disabling this in my rule set, though it is useful at times.