- Don't type things as
any
- Don't use default exports
- We prefer
type
overinterface
- Don't use prefix I in type name
- Destructure props only when its necessary
- Please add unit tests for functions you wrote
- Use naming convention
feature/my-awesome-feature
andbugfix/some-bug
for branches - Use this style guide in commits
- Commit only code that successfully passes 'yarn full'
- Don't use hardcoded strings, use i18n
- Use meaningful names for variables and components
- Try to write reusable code
Please Don't use FC to type React Components without
children.
instead do sth like this
type ComponentProps = {
label: string
}
export const Component = (props: ComponentProps) => {
//...
}
- Docs:
https://akademia.danielgrychtol.com/api/docs
- Base URL:
https://akademia.danielgrychtol.com/api