Just run:
npm install --save-dev eslint eslint-config-airbnb eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-import
- In the terminal run:
eslint --init
video - In the file
.eslintrc.js
change the extends to'extends': 'airbnb'
- You can create an npm script by adding something like this to your
package.json
file:
{
"scripts": {
"lint": "eslint app.js"
}
}
- Then you can run ESLint by using
npm run lint
in the terminal. - Other alternative could be execute ESLint Task, open the command palette from VS Code and execute below command:
Ctrl + Shift + p
and selectTask: Run tash, npm: lint
- documentation
##Steps of running this project
from the command prompt clone the project
- $git clone https://github.com/techsithgit/react-with-redux.git
- $cd react-with-redux
- $npm install
- $npm start