We have in the repo eslint and prettier which gets us some of the way to ensuring code consistency but there are a number of other areas where a coding style guide would be helpful for contributors. Some things that spring to mind are as follows:
Uses FunctionComponent
Uses Pure functions
Doesn't use Classes
Exports are named / not default
utils fare sometimes co-located and larger more comment utils are in the general utils dir
I imagine there's a tool out there that can help format this but if anyone stumbles across this issues and would like to help i'd be happy to collaborate.
We have in the repo
eslint
andprettier
which gets us some of the way to ensuring code consistency but there are a number of other areas where a coding style guide would be helpful for contributors. Some things that spring to mind are as follows:FunctionComponent
I imagine there's a tool out there that can help format this but if anyone stumbles across this issues and would like to help i'd be happy to collaborate.