Airbnb Style eslint for React app

Monday, July 27, 2020

Airbnb linting style is the best approach for coding standards for your project

To begin with start with a terminal with the following
mkdir my-app
cd my-app
npx create-react-app
Add Airbnb linting config on to node modules
npm install --save-dev eslint eslint-config-airbnb
Add .eslintrc to enable Airbnb linting

This is a basic configuration to get started. Add additional rules to configure as per your taste

Add eslint plugin and Allow eslint on your vscode config.


No comments: