Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-fbjs-opensource

facebook171MIT3.0.0

This configuration is a new ideal setup based on Facebook's internal configurations combined with the configurations that our open source projects are trending towards in a more modern code base. In particular, this is strongly based on Nuclide's ESLint r

readme

eslint-config-fbjs-opensource

This configuration is a new ideal setup based on Facebook's internal configurations combined with the configurations that our open source projects are trending towards in a more modern code base. In particular, this is strongly based on Nuclide's ESLint rules. It has far more rules enabled than our other configuration and enforces a stricter style.

Usage

Install:

npm

npm install --save-dev eslint eslint-config-fbjs-opensource

yarn

yarn add --dev eslint eslint-config-fbjs-opensource

Configure

Add extends: 'fbjs-opensource' to your local .eslintrc

Warning Configuration

This package also comes with a warning version of the config. This can be used to make all rules that would normally be reported as errors to be reported as warnings.

Use extends: 'fbjs-opensource/warning' in your .eslintrc

changelog

[3.0.0] - 2022-07-11

Changed

  • Updated dependencies
  • Switch babel-eslint for @babel/eslint-parser
  • Switch eslint-plugin-flowtype for eslint-plugin-ft-flow

[2.0.1] - 2019-08-20

Changed

  • Added peer dependencies for eslint (6.x).

[2.0.0] - 2019-03-20

Changed

  • Upgraded ESLint peer dependency.