Zoetrope's React ESLint rules
Installation
Unfortunately because of this the airbnb config that this extends and the plugins that it requires can't be installed as dependencies of this module so you have to manually install the peer dependencies..
npm i eslint-config-zoetrope eslint-config-airbnb@15.1.0 eslint-plugin-import@2.7.0 eslint-plugin-jsx-a11y@5.1.1 eslint-plugin-react@7.3.0
The above versions numbers were originally generated by running the install shell command for eslint-config-airbnb
described here
Usage
//.eslintrc
{
"parser": "babel-eslint",
"extends": "zoetrope",
"env": {
"browser": true,
"es6": true,
"node": true
},
"globals": {
"describe": true,
"before": true,
"it": true,
"expect": true,
"sinon": true
}
}