From the course: React Native Essential Training

Unlock the full course today

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

Configuring ESLint

Configuring ESLint - React Native Tutorial

From the course: React Native Essential Training

Start my 1-month free trial

Configuring ESLint

- [Instructor] The first order of business is to bring in some ESLint configuration. If I forget a comma here or actually leave something that is not used, I'd like ESLint to be configured to tell me about these problems when I save this file. Right now, there is no ESLint configured. So you can install ESLint and bring in any configuration you like. I like to use my own, slightly modified recommended configuration for ESLint, it's part of my DOT files repo as well. So it's .eslintrc.js in here. And this configuration uses the Babel ESLint and the main recommended ESLint rules, plus the recommended react plugin rules and a few customizations. So we'll add this file under TargetSum as .eslintrc.js. And to get this file to work, we need to install a few dependencies. So NPM install, these are development dependencies, so dash D. We need ESLint itself. I also need Babel-ESLint because my configuration uses that as a…

Contents