- Always use double quotes for string literals. Except in the case when the string contains a double quote.
- Always use double quotes for imports when importing a module from the project. Use single quotes when importing a third-party module.
- Put third-party imports at the top of the file and local imports below. Put a blank line between them.
- Do not touch files under src/i18n/locales.
- Do not write texts verbatim, just use
t()function with an identifier.
- Literal names of actions should correspond to their function names and type
names. For example, literal: "DO_SMTH", function:
doSmth(), type: DoSmthAction. - Action functions are for creating action objects only. Do not add any additional logic to these functions.