My preferred eslint config
- Set up eslint:
npm install --save-dev eslint eslint-config-airbnb eslint-plugin-react
- Paste
"lint": "eslint src test; exit 0"
intopackage.json
scripts (exit 0;
prevents failures creating npm debug files)
Note: If React plugin is not required, change the "extends": "airbnb"
to "extends": "airbnb/base"