{"id":40965,"library":"eslint-config-amo","title":"eslint-config-amo","description":"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.","status":"active","version":"8.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/mozilla/eslint-config-amo","tags":["javascript","eslint","config","amo"],"install":[{"cmd":"npm install eslint-config-amo","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-amo","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-amo","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency for ESLint 9","package":"eslint","optional":false},{"reason":"peer dependency for Jest 30","package":"jest","optional":false},{"reason":"peer dependency for Prettier 3","package":"prettier","optional":false}],"imports":[{"note":"Use the short name 'amo' in .eslintrc if the package is installed.","wrong":"extends: ['eslint-config-amo']","symbol":"default config","correct":"extends: ['amo']"},{"note":"ESLint 9 flat config prefers ESM imports.","wrong":"const config = require('eslint-config-amo')","symbol":"module use (ESM)","correct":"import config from 'eslint-config-amo'"},{"note":"For CommonJS projects, use require.","wrong":"import config from 'eslint-config-amo'","symbol":"module use (CJS)","correct":"const config = require('eslint-config-amo')"}],"quickstart":{"code":"// .eslintrc.js\nmodule.exports = {\n  extends: ['amo'],\n};\n\n// Or for ESLint 9 flat config:\n// eslint.config.js\nimport amo from 'eslint-config-amo';\nexport default [...amo];","lang":"javascript","description":"Shows how to extend the AMO ESLint config in both legacy .eslintrc and ESLint 9 flat config formats."},"warnings":[{"fix":"Upgrade peer dependencies: ESLint ^9.0.0, Jest ^30.0.0, Prettier ^3.2.5.","message":"Version 8.0.0 drops support for ESLint <9, Jest <30, Prettier <3.2.5.","severity":"breaking","affected_versions":">=8.0.0"},{"fix":"Migrate to eslint.config.js with import from 'eslint-config-amo'.","message":".eslintrc style configuration is deprecated in ESLint 9 in favor of flat config.","severity":"deprecated","affected_versions":">=8.0.0"},{"fix":"Use 'amo' as the value for extends.","message":"Extends 'amo' not 'eslint-config-amo' in .eslintrc.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'3.2.5':22 '30.0.0':19 '8.0.0':14 '9.0.0':17 'addons.mozilla.org':11 'amo':4,10,48,62 'cadenc':39 'code':31 'codebas':58 'config':3,27,46,61 'configur':7 'depend':25 'differenti':41 'enforc':28 'eslint':2,6,16,60 'eslint-config-amo':1 'javascript':59 'jest':18,57 'key':40 'mozilla':9,29 'offici':45 'peer':24 'prettier':21 'project':12,49 'react':55 'releas':35 'requir':15 'rule':52 'semver':38 'share':5 'standard':32 'strict':51 'tailor':53 'version':13","created_at":"2026-06-04T18:50:07.615791+00:00","updated_at":"2026-06-04T18:50:07.615791+00:00","problems":[{"fix":"Change extends to 'amo'.","cause":"Using the full package name 'eslint-config-amo' in extends.","error":"Error: Failed to load plugin 'amo' declared in 'amo'"},{"fix":"npm install --save-dev eslint-config-amo eslint jest prettier","cause":"Package not installed or missing peer deps.","error":"Cannot find module 'eslint-config-amo'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/mozilla/eslint-config-amo#readme","github":"https://github.com/mozilla/eslint-config-amo","docs":null,"changelog":null,"pypi":null,"npm":"eslint-config-amo","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}