Closed Bug 1246594 Opened 6 years ago Closed 3 years ago
Enable no-throw-literal eslint rule in the entire tree
47 bytes, text/x-phabricator-request
|Details | Review|
Because `throw "Foo"` isn't as good as `throw new Error("Foo")` eslint has a builtin rule for this: http://eslint.org/docs/rules/no-throw-literal It seems to already be enabled for toolkit/components/extensions and devtools. I think we should enable it everywhere.
Assignee: nobody → moz-ian
Status: NEW → ASSIGNED
Pushed by email@example.com: https://hg.mozilla.org/comm-central/rev/470f4c1ed97e Port bug 1246594 - Enable ESLint rule no-throw-literal by default; rs=bustage-fix DONTBUILD
You need to log in before you can comment on or make changes to this bug.