- Watch video guide
- Learn eslint rules from the simplified styleguide
- Fork the repo (Github repository)
- Clone the forked repo
git clone the-link-from-your-forked-repo
- You can get the link by clicking the
Clone or download
button in your repo
- You can get the link by clicking the
- Open the project folder in your IDE
- Open a terminal in the project folder
- Create a branch for the solution and switch on it
git checkout -b develop
- You can use any other name instead of
develop
- You can use any other name instead of
- Run
npm install
(or justnpm i
) to install the dependencies
- Implement the solution within a function in
src/<task_name>.js
- Run
npm run test
(or justnpm test
) to check if your solution is correct- If at least one test fails fix the solution and check again.
- Run
npm run lint
to see if your code follows the the simplified styleguide- If you see some errors fix them and check again
- Save the solution
git commit -am 'Solution'
- code style is automatically checked again when you
commit
the code - Fix all the errors before committing again
- code style is automatically checked again when you
- Push the solution to the repo
git push origin develop
- If you created another branch (not
develop
) use its name instead - The tests are run again before the push to ensure the solution still works
- Fix all the test and commit before pushing again
- If you created another branch (not
- Open your repo on Github and create a
Pull Request
(PR) - Select your branch in the dropdown
- Verify the PR details and code (scroll down to see it) and confirm
- Repeat Implement the solution section
- PR is updated automatically after a push to your branch on Github
After updating your PR - click on re-request button at PR page IF YOU NEED ADDITIONAL REVIEW OF YOUR CODE.