II. Dev tools - 24CaretSolutions/2b_n4tive GitHub Wiki
Prettier
We all know prettier is cool. To install and configure it follow this guide.
Eslint
For JavaScript code linting we use eslint. Read more about it here. It configures to follow react jsx code style rules.
Globally disabled rules
Here is the list of the rules that we decided to disable and not to follow in the project:
Locally disabled rules
import/prefer-default-export - disable this rule for all files that usually have multiple exports (eg utils, redux actions, redux action types, etc), but current implementation of it has only one export. This also means that these kinds of files never have default export
react/prop-types - disable this rule for all containers components; it means that all props for that type of components comes from redux store and are not needed to be validated
react/no-did-mount-set-state - disable this rule when you expect of the component to re-render right after it was mounted and rendered first time (eg if you do an api call and want to re-render the component with the call results)
Please feel free to disable any of the rules for a file scope or for the next line scope (preferably last one) if it doesn't add any value to code quality and you have a strong point why you must not obey the rule in a particular case.
Expo.io
Follow the official documentation to run and debug the app in your local enviroment