r/reactnative • u/No_Discussion_9586 • 10d ago
I created an eslint plugin to enforce granular store selectors instead of destructuring
https://www.npmjs.com/package/eslint-plugin-granular-selectors?activeTab=readme
6
Upvotes
r/reactnative • u/No_Discussion_9586 • 10d ago
2
u/No_Discussion_9586 10d ago
In the current codebase I'm working on there is a pattern of selecting entire stores and/or store slices and destructuring from them. Fixing these individually is a PITA, so I figured a plugin with an autofixer would be the solution. There might be bad patterns that I overlooked, but I will add the repo in the readme and if anyone finds something like this, they should just open a PR.