Expected an assignment or function call and instead saw an expression no-unused-expressions
sntrenter opened this issue · comments
Sam Trenter commented
scale.ticks = function(interval, step) {
var d = domain(),
t0 = d[0],
t1 = d[d.length - 1],
r = t1 < t0,
t;
if (r) t = t0, t0 = t1, t1 = t;
t = tickInterval(interval, t0, t1, step);
t = t ? t.range(t0, t1 + 1) : []; // inclusive stop
return r ? t.reverse() : t;
};
This little line is causing my build to fail.
if (r) t = t0, t0 = t1, t1 = t;
I've tried deleting and re-installing node modules to no avail.
Philippe Rivière commented
Whatever linter your build system is using is probably confused, please report the issue with them.