D3 + JavaScript Tooling's Not (Just) For Unicorns

A horrible introduction to using modern JavaScript tooling with D3

Chapter 11

Interlude - What have we learned?

Okay, cool, so we’re halfway there in our journey to understanding JavaScript tooling! Here’s what we’ve learned so far:

  1. We use npm to install everything - packages/modules/whatever you want to call them
  2. npm installs things on a per-project basis
  3. To make a new project, we use npm init
  4. When we make a new project, this makes a package.json that describes our project and its dependencies
  5. eslint is used to clean up our code quality
  6. Prettier is used to clean up our code formatting
  7. We use these tools with npm run by filling out the scripts section of our package.json
  8. We’re lazy, so we also just installed them in our text editor

I know, that’s a lot of stuff.

Linting does a lot to help fix errors in our code easily, though, so even if it’s more work in the beginning you save a lot of time in the long run! And people who read our code will be thankful, too.

Now let’s move on to the next step.