Registry / testing / eslint-config-fbjs

eslint-config-fbjs

JSON →
library4.0.0jsnpmunverified

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-fbjs
INSTALL
IMPORT
SIG · ESLINT-CONFIG-FBJS
E
eslint-config-fbjs
testingjavascriptv4.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

eslint-config-fbjs
extends: ['fbjs']
extends: ['eslint-config-fbjs']
Use the shorthand 'fbjs' in extends array
eslint-config-fbjs/strict
extends: ['fbjs/strict']
extends: ['fbjs'] with overrides
Strict variant turns all warnings into errors
Plugin: babel
plugins: ['babel']
plugins: ['eslint-plugin-babel']
Shorthand plugin names are standard in ESLint config

Install peer dependencies and configure ESLint with the fbjs config using the extends field.

// Install dev dependencies npm install --save-dev eslint-config-fbjs eslint-plugin-babel eslint-plugin-ft-flow eslint-plugin-jsx-a11y eslint-plugin-react eslint hermes-eslint // Create .eslintrc.json { "extends": "fbjs", "plugins": ["babel", "ft-flow", "jsx-a11y", "react"], "rules": { "react/jsx-uses-vars": "error" } } // Lint a file npx eslint src/**/*.js
Debug
Known issues
breakingVersion 2.x dropped support for ESLint <6. Upgrade ESLint if using older versions.
fix
Update ESLint to >=6.0.0 and run npm install --save-dev eslint@^6
affects: >=2.0.0
deprecatedThe 'strict' config is now built-in; manual overrides to turn warnings to errors are unnecessary.
fix
Use extends: 'fbjs/strict' instead of custom rules overrides
affects: >=3.0.0
breakingPeer dependency hermes-eslint added in v4.0.0. Failing to install it causes eslint to fail.
fix
Run npm install --save-dev hermes-eslint@>=0.8.0
affects: >=4.0.0
gotchaInternal custom rules are not present in this config. Do not expect Facebook-specific rules to work.
fix
Add custom rules via plugins or overrides in your .eslintrc
affects: >=1.0.0
gotchaThis config uses eslint-plugin-ft-flow for Flow type linting; it does not support eslint-plugin-flowtype.
fix
Use eslint-plugin-ft-flow instead of deprecated eslint-plugin-flowtype
affects: >=4.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'babel' declared in 'fbjs': Cannot find module 'eslint-plugin-babel'
Missing peer dependency
fix
npm install --save-dev eslint-plugin-babel
Error: Failed to load config 'fbjs' to extend from.
Missing eslint-config-fbjs module
fix
npm install --save-dev eslint-config-fbjs
ESLint couldn't find the config "fbjs/strict". Check that the name of the config is correct.
Outdated package version (<3.0.0) that does not export 'fbjs/strict'
fix
Upgrade to eslint-config-fbjs@>=3.0.0
Upgrade
Version history
4.0.0latest on npm
Audit
Dependencies
eslintrequiredpeer dependency for ESLint
hermes-eslintrequiredpeer dependency for Hermes parser
eslint-plugin-babelrequiredpeer dependency for Babel support
eslint-plugin-ft-flowrequiredpeer dependency for Flow type checking
eslint-plugin-jsx-a11yrequiredpeer dependency for accessibility
eslint-plugin-reactrequiredpeer dependency for React rules
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-fbjs — npm install eslint-config-fbjs · libregistry