fune/tools/lint/eslint/eslint-plugin-mozilla
Victor Porof 5c7cdbd4ba Bug 1561435 - Format tools/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35940

--HG--
extra : source : d214f0c82813e5a8d3987debc490a2c11f1308ff
2019-07-05 11:18:19 +02:00
..
lib Bug 1561435 - Format tools/, a=automatic-formatting 2019-07-05 11:18:19 +02:00
reporters Bug 1561435 - Format tools/, a=automatic-formatting 2019-07-05 11:18:19 +02:00
scripts Bug 1561435 - Format tools/, a=automatic-formatting 2019-07-05 11:18:19 +02:00
tests Bug 1561435 - Format tools/, a=automatic-formatting 2019-07-05 11:18:19 +02:00
.npmignore
LICENSE
manifest.tt Bug 1551551 - Update eslint-plugin-mozilla mocha version (dev dependency). r=ahal 2019-05-15 14:35:36 +00:00
package-lock.json Bug 1558517 - Pre 7: Bump eslint-plugin-mozilla version, r=standard8, CLOSED TREE 2019-07-04 15:37:28 +02:00
package.json Bug 1558517 - Pre 7: Bump eslint-plugin-mozilla version, r=standard8, CLOSED TREE 2019-07-04 15:37:28 +02:00
README.md
update.sh

eslint-plugin-mozilla

A collection of rules that help enforce JavaScript coding standard in the Mozilla project.

These are primarily developed and used within the Firefox build system (mozilla-central), but are made available for other related projects to use as well.

Installation

Within mozilla-central:

$ ./mach eslint --setup

Outside mozilla-central:

Install ESLint ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-mozilla:

$ npm install eslint-plugin-mozilla --save-dev

Documentation

For details about the rules, please see the firefox documentation page.

Source Code

The sources can be found at:

Bugs

Please file bugs in Bugzilla in the Lint component of the Testing product.

Tests

The tests can only be run from within mozilla-central. To run the tests:

./mach eslint --setup
cd tools/lint/eslint/eslint-plugin-mozilla
npm run test