eslint-config-fbjs is an ESLint shareable config that mirrors Facebook's internal linting rules. Current stable version: 4.0.0. Released infrequently, this package provides a base configuration for JavaScript and React projects, with strict and non-strict variants. It requires peer dependencies: eslint 8.x, hermes-eslint, and plugins for babel, ft-flow, jsx-a11y, and react. Unlike many other configs, it purposely omits Facebook-specific custom rules and project-specific overrides, making it a lightweight starting point. Key differentiator: direct alignment with Facebook's open-source linting standards.
npm install eslint-config-fbjsVerified import paths — ran on the pinned version, not inferred.
Install peer dependencies and configure ESLint with the fbjs config using the extends field.
Update ESLint to >=6.0.0 and run npm install --save-dev eslint@^6
Use extends: 'fbjs/strict' instead of custom rules overrides
Run npm install --save-dev hermes-eslint@>=0.8.0
Add custom rules via plugins or overrides in your .eslintrc
Use eslint-plugin-ft-flow instead of deprecated eslint-plugin-flowtype
npm install --save-dev eslint-plugin-babel
npm install --save-dev eslint-config-fbjs
Upgrade to eslint-config-fbjs@>=3.0.0