eslint-config-fbjs
For the most part, this configuration matches the ESLint configuration we have internally at Facebook.
Last updated 4 months ago by zpao .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-config-fbjs 
SYNC missed versions from official npm registry.

eslint-config-fbjs

For the most part, this configuration matches the ESLint configuration we have internally at Facebook.

There are several exceptions:

  • No special cases for projects. Some projects have stricter lint rules. Those configurations are not present here. If you open source a project with different configuration, just specify the overrides in your own repository's .eslintrc
  • No fb-specific rules. We have a number of custom rules internally that are not synced out. We may do that in the future. This means there are several things which we will not catch here but will be caught in Phabricator. Beware of that when relying on this configuration as your only linting process.

Usage

Install:

npm

npm install --save-dev \
  eslint-config-fbjs \
  eslint-plugin-babel \
  eslint-plugin-flowtype \
  eslint-plugin-jsx-a11y \
  eslint-plugin-react \
  eslint \
  babel-eslint

yarn

yarn add --dev \
  eslint-config-fbjs \
  eslint-plugin-babel \
  eslint-plugin-flowtype \
  eslint-plugin-jsx-a11y \
  eslint-plugin-react \
  eslint \
  babel-eslint

Configure

Add extends: 'fbjs' to your local .eslintrc

Strict Configuration

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

Current Tags

  • 3.1.1                                ...           latest (4 months ago)
  • 2.0.0-alpha.1                                ...           next (3 years ago)

10 Versions

  • 3.1.1                                ...           4 months ago
  • 3.1.0                                ...           9 months ago
  • 2.1.0                                ...           a year ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 2.0.0-alpha.1                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.0                                ...           3 years ago

Copyright 2014 - 2017 © taobao.org |