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 babel-eslint@10.0.1 eslint@5.16.0 eslint-plugin-flowtype@3.10.1 eslint-plugin-import@2.17.3 eslint-plugin-jsx-a11y@6.2.1 eslint-plugin-react@7.13.0 eslint-plugin-react-hooks@1.6.0
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 babel-eslint@10.0.1 eslint@5.16.0 eslint-plugin-flowtype@3.10.1 eslint-plugin-import@2.17.3 eslint-plugin-jsx-a11y@6.2.1 eslint-plugin-react@7.13.0 eslint-plugin-react-hooks@1.6.0
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