eslint-config-madmobile
v1.1.0
Published
ESLint rules to enforce javascript coding standards at Mad Mobile
Downloads
17
Readme
:oncoming_police_car: eslint-config-madmobile
ESLint rules to enforce javascript coding standards at Mad Mobile. This heavily relies on the Airbnb javascript style guide as an industry standard formed over the years to enforce best practices.
Installation
yarn add eslint-config-madmobileUsage
This is a shareable eslint config. In order to use it, you will need to install the peer dependencies.
For Linux/OSX users:
(
export PKG=eslint-config-madmobile;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs yarn add --dev "$PKG@latest"
)For Windows users:
yarn add --dev eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-node eslint-plugin-reactTo integrate this into to a project, add this to your .eslintrc file:
{
"extends": "eslint-config-madmobile"
}If you are wondering why the above dependencies simply can't be dependencies of eslint-config-madmobile itself, please read this GitHub drama for some more context.
