Skip to content

ESlint + Prettier + Airbnb Style Guide Configuration for React Apps

License

Notifications You must be signed in to change notification settings

7iomka/eslint-prettier-airbnb-react

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ESLint/Prettier & Airbnb's Style Guide for React Apps

Make sure you npm init, or at least have a package.json file before proceeding!

Installation

You will need npm/npx installed. It will work on Windows, but just needs to be run in a bash shell, like VS Code's integrated terminal.
  1. Clone this repo somewhere on your machine, preferably in your home directory (~/), and NOT in your app's directory.
cd
git clone https://github.com/paulolramos/eslint-prettier-airbnb-react style-config
  1. Navigate to your app directory where you want to include this style configuration.
cd myApp
  1. Run the shell script inside your app's root directory. (The example below assumes you cloned this repo inside your home directory)
~/style-config/eslint-prettier-config.sh
  1. The shell script added two config files
  • .eslintrc.json
  • .prettierrc

This script follows this tutorial by Jeffrey Zhen.

About

ESlint + Prettier + Airbnb Style Guide Configuration for React Apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%