Various addons related helpers to build scanners.
npm install addons-scanner-utils
- You need Node 22, which is the current LTS (long term support) release.
- You need npm to manage dependencies and run commands.
- Read our contributing guidelines to get started on your first patch
- Clone this repository
- Type
npm installto install everything - Run the test suite to make sure everything is set up:
npm test
In the project directory, you can run the following commands. There are a few commands not mentioned here (see package.json) but those are only used by internal processes.
This runs ESLint to discover problems within our codebase without executing it. ESLint also enforces some patterns and practices.
This runs all the lint commands at once.
This runs Prettier to automatically format the entire codebase.
This runs Prettier on only your changed files. This is intended for development.
This launches Jest in the interactive watch mode.
We use Prettier to automatically format our JavaScript code and stop all the on-going debates over styles. As a developer, you have to run it (with npm run prettier-dev) before submitting a Pull Request.
This project follows the semantic versioning specification. To release a new version of this library on npmjs.org, please see our release process.