My personal eslint-config file. It uses the airbnb style-guide with Prettier for auto formatting
- Install the following packages into you project:
npm i @lucasfrosty/eslint-config babel-eslint prettier [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] --save-dev
-
Next create a file with the name of
.eslintrc
on the root folder of the project. -
Inside the
.eslintrc
file just add the following:
{
"extends": "@lucasfrosty/eslint-config"
}
And that's it!! You'll be using both Prettier and ESLint using the Airbnb style-guide