0

I'm not a fan of ASI. But given that this is perfectly legit JavaScript, where exactly is it here that jshint (repeatedly, 8 times over) is expecting to find a semicolon?

    script.addEventListener('load', function () {
        ++i !== requires.length ? loader(i) : (loadLocal(thirdParty), loadLocal(main))
    }, true);
Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
BrianFreud
  • 7,094
  • 6
  • 33
  • 50

1 Answers1

5

At the end of your ternary expression.

i.e.

(loadLocal(thirdParty), loadLocal(main));
                                        ^ here
Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335