From the course: React: Securing Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set up ESLint

Set up ESLint - React.js Tutorial

From the course: React: Securing Applications

Start my 1-month free trial

Set up ESLint

- As you may or may not be aware, ESLint is already installed with React when creating an application with CRA. So you could literally keep working on your app without setting anything up. But I like to add stricter rules, such as the ones followed by Airbnb's engineering team. Having more strict rules in your syntax is always a good practice, and like flow will help prevent bad code that opens up your application for security threats. So let's set this up. So right now, like I said, we don't have really strict rules. So if we look at the bottom on VS code here, we have no problems. So if I click here, I have absolutely no problem. But let's insert the Airbnb files here. So let's go back to the terminal. So you can click here or you can click on view, terminal. And then what we're going to do is use NPX again to install the dependencies. And by the way, this is much better than what it used to be. So we had to…

Contents