Welcome to Pull Requests, Linting and Formatting! This course is about working on a project the way teams do. Over one week, Generic Grocery Co.’s website gets four pull requests, changes proposed on GitHub, and you open all four.
The first one adds a formatter and a linter. The third is an AI assistant’s draft of a Christmas turkey pre-order page, which you review with line comments. The last one you write yourself, with the turkey prices, and at the end of the week, the project’s checks pass.
Until now, your commits went straight onto main, and nobody read them first. That works, until you push a typo the day after Thanksgiving dinner and every customer sees it.
From this week, every change goes through a pull request on GitHub. The formatter and the linter check the code, and you read the whole change, as a reviewer, before it reaches main. That’s how most teams work, and it’s how AI-written code gets caught before it ships.
What You’ll Learn
By the end of this course, you’ll be able to:
- Add a formatter and a linter to a project: Prettier, which tidies the code’s layout, and ESLint, which flags likely mistakes
- Make every change through a pull request that says what and why
- Review a pull request, including AI-written code, with line comments
In the final project, you write the turkey page’s logic in your own pull request. The project’s check script, the coding exercises’ tests, and the mentor all look at your work.
Before You Start
You should know how to commit, branch and merge with Git, how to push and pull on GitHub, and how to run an npm and Vite project.
The next lesson gets you the store’s site with its whole history. You can start from the ZIP below or, if you finished the course before this one, keep your own repository:
How the Course Works
Most lessons are text that you follow along with in your own project, plus videos like this one, quizzes, and coding exercises. Along the way, you’ll run into an error or two, and each one is explained on the spot.
Next, you’ll pick up the store’s site.