root 3bf41bf355 update | há 1 ano atrás | |
---|---|---|
.. | ||
lib | há 1 ano atrás | |
node_modules | há 1 ano atrás | |
LICENSE | há 1 ano atrás | |
README.md | há 1 ano atrás | |
manifest.tt | há 1 ano atrás | |
package.json | há 1 ano atrás |
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.
$ ./mach eslint --setup
Install ESLint ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-mozilla
:
$ npm install eslint-plugin-mozilla --save-dev
For details about the rules, please see the firefox documentation page.
The sources can be found at:
Please file bugs in Bugzilla in the Lint component of the Testing product.
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