diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2c318dc682..e893075599 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -162,7 +162,7 @@ or $ yarn new NewComponent --native ``` -- **New Theming:** Every component has its own `theme` file. You can find it in its own folder. When building a new component, make sure to add values like paddings, colors, margins, to the component theme file. +- **New Theme:** Every component has its own `theme` file. You can find it in its own folder. When building a new component, make sure to add values like paddings, colors, margins, to the component theme file. To create custom themes, Yoga exposes a `createTheme` function in order to generate new themes, you can refer to [Theme Generator](https://gympass.github.io/yoga/components/theming/themeGenerator) in order to see how to create custom themes. @@ -208,6 +208,20 @@ Push your changes to your fork: $ git push origin branch-name ``` +Also, we have two hooks inside Yoga repo. + +For run eslint: + +```bash +$ pre-commit +``` + +For run test: + +```bash +$ pre-push +``` + ### 5. Pull Requests Open a Pull Request (PR) in the Yoga repository. Describe what was done, why it was done, and any other relevant details in the PR, following the template. Please always indicate in the PR when a design review is needed, along with images and videos.