Expensify’s sharable ESLint configuration, based on Airbnb’s style guide, with React and JSX a11y support. Current stable version is 2.0.110. Released automatically via GitHub Actions on merge. Provides two configs: default (full) and legacy. Requires eslint, eslint-plugin-import, eslint-plugin-react, and eslint-plugin-jsx-a11y as peer dependencies. Automatically versioned and published via CI.
npm install eslint-config-expensifyVerified import paths — ran on the pinned version, not inferred.
Shows how to set up an .eslintrc.js file using the Expensify config with a custom rule override.
Upgrade Node to >=16 and ESLint to >=8, or stay on v1.x.
Migrate to the default config and remove legacy references.
Run 'npm install --save-dev eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y'.
Let CI bump version; only change rules in your PR.
npm install --save-dev eslint-plugin-import
npm install eslint-config-expensify --save-dev
Ensure the rule is an array with severity and options, e.g., [1, { extensions: ['.jsx'] }].