6 steps to integrate Prettier + ESLint + Airbnb Style in VSCode
-
npx create-react-app app-name
-
Download Eslint and Prettier extensions for VScode: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
-
Install airbnb config: npx install-peerdeps --dev eslint-config-airbnb (only available with npm+5)
-
eslint-config-prettier and eslint-plugin-prettier: npm install -D eslint-config-prettier eslint-plugin-prettier
-
create and copy the file .eslintrc.json from this repository
-
create and copy the file .prettierrc from this repository
--IF YOU HAVE A ERROR WITH NPM START-- Copy and paste the .env file