Skip to Content
React 16 Tooling
book

React 16 Tooling

by Adam Boduch, Christopher Pitt
April 2018
Intermediate to advanced content levelIntermediate to advanced
298 pages
6h 34m
English
Packt Publishing
Content preview from React 16 Tooling

Using ESLint with create-react-app

Everything you've seen so far in this chapter, you've had to set up and configure yourself. Not that getting ESLint up and running is particularly difficult or anything, but create-react-app abstracts this away completely. Remember, the idea with create-react-app is start writing component code as soon as possible, without having to think about configuring things like linters.

To see this in action, let's create a new app using create-react-app:

create-react-app my-new-app

Then, start the app as soon as it's created:

npm start

Now let's get ESLint to complain about something. Open up App.js in your editor—it should look something like this:

import React, { Component } from 'react'; import logo from './logo.svg'; ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro React 16

Pro React 16

Adam Freeman

Publisher Resources

ISBN: 9781788835015Supplemental Content