Installing the Style Guide

Create ReactJS App

npx create-react-app react-project

Install ESLint

Prerequisites: Node.js(^10.12.0 or >=12.0.0) built with SSL support.

(If you are using an official Node.js distribution, SSL is always built in.)

You can install ESLint using npm or yarn:

npm install eslint --save-dev

# or

yarn add eslint --dev

Then, set up a configuration file, using the --init flag.

After running eslint --init, you'll have a .eslintrc.{js,yml,json} file in your directory.

Installing Prettier

Then add Prettier to the "extends" array in your .eslintrc file

Last updated