Skip to content

Instantly share code, notes, and snippets.

@SergeyLitvin
Created June 12, 2019 14:33
Show Gist options
  • Save SergeyLitvin/705bf0d501e1f687826bb9839a4137d3 to your computer and use it in GitHub Desktop.
Save SergeyLitvin/705bf0d501e1f687826bb9839a4137d3 to your computer and use it in GitHub Desktop.
Instruction configuring eslint-config-react-app
npm install --save-dev eslint-config-react-app [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
Usage Outside of Create React App
If you want to use this ESLint configuration in a project not built with Create React App, you can install it with the following steps.
First, install this package, ESLint and the necessary plugins.
npm install --save-dev eslint-config-react-app [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
Then create a file named .eslintrc.json with following contents in the root folder of your project:
{
"extends": "react-app"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment