{"repo":"mozilla/addons-linter","free":true,"listed":false,"github":"https://github.com/mozilla/addons-linter","clone":"git clone https://github.com/mozilla/addons-linter.git","description":"🔍 Firefox Add-ons linter, written in JavaScript. 👁","language":"JavaScript","stars":363,"topics":["web-extensions","cli"],"license":"MPL-2.0","category":"cli-tools","readme_excerpt":"addons-linter The Add-ons Linter is being used by web-ext and addons.mozilla.org to lint WebExtensions. It can also be used as a standalone binary and library. You can find more information about the linter and it's implemented rules in our documentation. Usage Command Line You need Node.js to use the add-ons linter. To validate your add-on locally, install the linter from npm: After installation, run the linter and direct it to your add-on file: Alternatively you can point it at a directory: The addons-linter will check your add-on and show you errors, warnings, and friendly messages for your add-on. If you want more info on the options you can enable/disable for the command-line app, use the --help option: Privileged extensions The addons-linter can lint privileged extensions only when the --privileged option is passed to it. This option changes the behavior of the linter to: 1. emit errors when the input file (or directory) is a regular extension (i.e. the extension does not use privileged features) 2. hide messages related to privileged features (e.g., permissions and properties) when the input file (or directory) is a privileged extension Linter API Usage You can use the linter directly as a library to integrate it better into your development process. linter.output is composed by the following properties (the same of the 'json' report type): Development If you'd like to help us develop the addons-linter, that's great! It's pretty easy to get started, you just need Node.","default_branch":null,"files":null,"tree":[],"storefront":"/r/mozilla","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mozilla/addons-linter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}