Registry / devops / eslint-config-amo

eslint-config-amo

JSON →
library8.0.0jsnpmunverified

Shared ESLint configuration for Mozilla AMO (addons.mozilla.org) projects. Version 8.0.0 requires ESLint ^9.0.0, Jest ^30.0.0, and Prettier ^3.2.5 as peer dependencies. This config enforces Mozilla's coding standards and is released on a semver cadence. Key differentiator: it's the official config for AMO projects with strict rules tailored to React and Jest codebases.

npm install eslint-config-amo
INSTALL
IMPORT
SIG · ESLINT-CONFIG-AMO
E
eslint-config-amo
devopsjavascriptv8.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

default config
extends: ['amo']
extends: ['eslint-config-amo']
Use the short name 'amo' in .eslintrc if the package is installed.
module use (ESM)
import config from 'eslint-config-amo'
const config = require('eslint-config-amo')
ESLint 9 flat config prefers ESM imports.
module use (CJS)
const config = require('eslint-config-amo')
import config from 'eslint-config-amo'
For CommonJS projects, use require.

Shows how to extend the AMO ESLint config in both legacy .eslintrc and ESLint 9 flat config formats.

// .eslintrc.js module.exports = { extends: ['amo'], }; // Or for ESLint 9 flat config: // eslint.config.js import amo from 'eslint-config-amo'; export default [...amo];
Debug
Known issues
breakingVersion 8.0.0 drops support for ESLint <9, Jest <30, Prettier <3.2.5.
fix
Upgrade peer dependencies: ESLint ^9.0.0, Jest ^30.0.0, Prettier ^3.2.5.
affects: >=8.0.0
deprecated.eslintrc style configuration is deprecated in ESLint 9 in favor of flat config.
fix
Migrate to eslint.config.js with import from 'eslint-config-amo'.
affects: >=8.0.0
gotchaExtends 'amo' not 'eslint-config-amo' in .eslintrc.
fix
Use 'amo' as the value for extends.
affects: *
Errors
Common errors & fixes
Error: Failed to load plugin 'amo' declared in 'amo'
Using the full package name 'eslint-config-amo' in extends.
fix
Change extends to 'amo'.
Cannot find module 'eslint-config-amo'
Package not installed or missing peer deps.
fix
npm install --save-dev eslint-config-amo eslint jest prettier
Upgrade
Version history
8.0.0latest on npm
Audit
Dependencies
eslintrequiredpeer dependency for ESLint 9
jestrequiredpeer dependency for Jest 30
prettierrequiredpeer dependency for Prettier 3
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-amo — npm install eslint-config-amo · libregistry