$ cnpm install eslint-config-fbjs
For the most part, this configuration matches the ESLint configuration we have internally at Facebook.
There are several exceptions:
.eslintrcnpmnpm install --save-dev \
eslint-config-fbjs \
eslint-plugin-babel \
eslint-plugin-ft-flow \
eslint-plugin-jsx-a11y \
eslint-plugin-react \
eslint \
hermes-eslint
yarnyarn add --dev \
eslint-config-fbjs \
eslint-plugin-babel \
eslint-plugin-ft-flow \
eslint-plugin-jsx-a11y \
eslint-plugin-react \
eslint \
hermes-eslint
Add extends: 'fbjs' to your local .eslintrc
This package also comes with a strict version of the config. This can be used to make all warnings be reported as errors. While this can be overly strict, it can be helpful to avoid the case where some CI configurations don't fail for warnings.
Use extends: fbjs/strict in your .eslintrc
Copyright 2013 - present © cnpmjs.org | Home |