d3 / d3-scale

Encodings that map abstract data to visual representation.

Home Page:https://d3js.org/d3-scale

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expected an assignment or function call and instead saw an expression no-unused-expressions

sntrenter opened this issue · comments

  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.

Whatever linter your build system is using is probably confused, please report the issue with them.