An ESLint plugin for Mozilla's AMO (Addons.mozilla.org) project, providing custom lint rules for React, i18n, testing conventions, and TypeScript. Version 3.0.0 is the latest stable release, actively maintained by Mozilla. It includes a recommended preset, a TypeScript preset, and rules like `dangerously-set-inner-html`, `i18n-no-interpolated-values`, and `describe-with-filename`. Unlike generic ESLint plugins, this is tailored specifically for AMO's codebase and conventions, making it essential for contributors to the addons-frontend project.
npm install eslint-plugin-amoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic ESLint configuration to enable the amo plugin, extend the recommended preset, and add custom rules.
Use "plugins": ["amo"] in your ESLint config.
Use "amo/rule-name": 2 in your rules.
Use "extends": ["plugin:amo/recommended"].
Update ESLint to version 6 or later.
Add "amo/i18n-no-reference": 2 to your rules if needed.
Use 2 for error, 1 for warning, 0 for off, or the equivalent strings.
Install both ESLint and eslint-plugin-amo in the same project: npm i --save-dev eslint eslint-plugin-amo
Update ESLint to version 6 or later, or downgrade the plugin.