Development Environment

ESLint has a very lightweight development environment that makes updating code fast and easy. This is a step-by-step guide to setting up a local development environment that will let you contribute back to the project.

Step 1: Install Node.js

Go to [http://nodejs.org/] to download and install the latest stable version for your operating system.

Most of the installers come with npm already installed, but if for some reason it doesn’t work on your system, you can install it manually using the instructions on the website.

Step 2: Fork and checkout your own ESLint repository

Go to [https://github.com/eslint/eslint] and click the “Fork” button. Follow the GitHub documentation for forking and cloning.

Once you’ve cloned the repository, run npm install to get all the necessary dependencies:

$ cd eslint
$ npm install

You must be connected to the Internet for this step to work. You’ll see a lot of utilities being downloaded.

Step 3: Add the upstream source

The upstream source is the main ESLint repository that active development happens on. While you won’t have push access to upstream, you will have pull access, allowing you to pull in the latest code whenever you want.

To add the upstream source for ESLint, run the following in your repository: