fune/docs/code-quality/lint
Ian Moody a52653c73c Bug 1536556 - Extend no-throw-cr-literal ESLint rule to forbid and fix throw new Error(Cr.ERROR);. r=Standard8
Code should be using `throw Components.Exception("", Cr.ERROR);` instead,
since `new Error()` just converts the int value of the Cr.ERROR into a string,
whereas `Exception` constructs an Exception object with the result property set
to the Cr.ERROR value, so other code can identify it.

Differential Revision: https://phabricator.services.mozilla.com/D28074
2020-05-05 17:43:39 +00:00
..
linters Bug 1536556 - Extend no-throw-cr-literal ESLint rule to forbid and fix throw new Error(Cr.ERROR);. r=Standard8 2020-05-05 17:43:39 +00:00
create.rst Bug 1623320 - Add support to run mozlint on dotfile r=linter-reviewers,ahal 2020-03-20 21:51:03 +00:00
index.rst
lint.rst
usage.rst Bug 1623656 - [mozlint] Make output of ./mach lint --list readable, r=linter-reviewers,sylvestre 2020-03-19 18:06:41 +00:00