Loading video player…

Pull Requests, Linting and Formatting (Overview)

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.

Download

Course Slides (.pdf)

238.3 KB
Download

Sample Code (.zip)

1.4 KB

00:00 Welcome to Pull Requests, Linting and Formatting. It’s about working on a project the way teams do.

00:08 This first taste shows a week of work on Generic Grocery Co.’s website, your project. Each new dot on main is one pull request, a change proposed on GitHub.

00:19 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, and you review it with line comments.

00:31 The last one you write yourself. It adds the turkey prices, and the checks pass.

00:38 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.

00:49 From this week, every change goes through a pull request. The formatter and the linter check the code, and you read the whole change, as a reviewer, before it reaches main.

01:00 That’s how most teams work, and how AI-written code gets caught.

01:06 You’ll add a formatter, Prettier, which tidies the code’s layout, and a linter, ESLint, which flags likely mistakes. You’ll make every change through a pull request that says what and why.

01:19 You’ll 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, checked by a script, tests and the mentor.

01:33 You should know how to commit, branch and merge with Git, push and pull on GitHub, and run an npm and Vite project.

01:42 The next lesson gets you the site with its history, as a ZIP or your own repository from the last course.

01:50 Most lessons are text you follow in your 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.

02:03 Next, you’ll pick up the store’s site.

Become a Member to join the conversation.