Closed Bug 1314829 Opened 5 years ago Closed 5 years ago
Remove no-unused-expressions from the recommended configuration
58 bytes, text/x-review-board-request
I started trying to turn this rule on and what I found roughly in order of quantity of things it caught: * Statements that did actually have side-effects and had to have the rule disabled because they deal with XPCOM getters, e.g. node.clientTop forcing XBL to apply, etc. * Statements that people had accidentally or intentionally ended with a "," instead of a ";". Those didn't constitute bugs. * Cases where "use strict" was used in the middle of a function or file. Only the latter is a behaviour changing bug so I don't think it is worth considering enabling this rule to support just that case when there are many cases where it just has to be disabled.
Comment on attachment 8807201 [details] Bug 1314829: Remove no-unused-expressions from the recommended configuration. https://reviewboard.mozilla.org/r/90440/#review90130
Attachment #8807201 - Flags: review?(jaws) → review+
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/43aec132d58e Remove no-unused-expressions from the recommended configuration. r=jaws DONTBUILD
You need to log in before you can comment on or make changes to this bug.