Skip to content

Recomended eslint & prettier configuration for a react application

Notifications You must be signed in to change notification settings

sumanthmadishetty/react-eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Eslint Config for React Application

eslint config with recommended rules enabled

eslint react prettier

Getting Started

Copy the .eslintrc file in this repo to the root of your project folder to use this configuration

Prerequisites

For this configuration to work you need to have the following plugins installed in your project

If you want to install all these packages in one go then you can use

npm i --save-dev eslint eslint-config-airbnb eslint-config-prettier eslint-plugin-import eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react prettier eslint-plugin-react-hooks babel-eslint

if you use yarn then

yarn add eslint eslint-config-airbnb eslint-config-prettier eslint-plugin-import eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react prettier eslint-plugin-react-hooks babel-eslint -D