Hacker News new | ask | show | jobs
by nfRfqX5n 1701 days ago
I think it would be easy to create a rule to see if the default export is wrapped in memo, but you could also just have it as a coding standard
2 comments

What do you mean by coding standard? My point was that if it's enforced by tool, either as a reminder, or an automatic modification, it's fine, but if it's not, it's annoying.
I wonder if this is the plugin they are using:

https://github.com/steadicat/eslint-plugin-react-memo

Does anyone know of any other eslint plugins that help enforce this?

The author of the article wrote the ESLint plugin: https://github.com/steadicat So they probably use(d) it.
That's great!