When using an npm 5+
npx install-peerdeps --dev @mobilabsolutions/eslint-config-react
If using npm < 5
To install this package and all its peer dependencies run:
(
export PKG=@mobilabsolutions/eslint-config-react;
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)
npm install -g install-peerdeps
install-peerdeps --dev @mobilabsolutions/eslint-config-react
Include the @mobilabsolutions/eslint-config-react
to the "extends" array in your .eslintrc.* file.\
You can easily override specific this settings eslint-plugin-react.
See http://eslint.org/docs/developer-guide/shareable-configs for more information.
{
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error"
}
}
See how to contribute Contributors Guide