rmurphey Adventures in JavaScript

Latest: Notes on setting up a JS project, circa 2016: ESLint

I wrote previously about setting up a client-side JS project to use Webpack and Babel. In this post, I'll cover the next step: adding ESLint to the project to keep the JavaScript code clean and following a consistent style.

This is the easiest step of all — so easy that at first I felt silly writing a post about it, but there were a couple of things worth noting.

To start, I installed ESLint to the project using npm install --save-dev eslint. Next, from the root directory of the project, I asked ESLint to create an initial configuration file for me:

./node_modules/eslint/bin/eslint.js --init

Read the rest of this entry »

Recently Updated