eslint config with recommended rules enabled
Copy the .eslintrc
file in this repo to the root of your project folder to use this configuration
For this configuration to work you need to have the following plugins installed in your project
- eslint
- eslint-config-airbnb
- eslint-config-prettier
- eslint-plugin-import
- eslint-plugin-jest
- eslint-plugin-jsx-a11y
- eslint-plugin-prettier
- eslint-plugin-react-hooks
- eslint-plugin-react
- prettier
- babel-eslint
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