jstoolnpp icon indicating copy to clipboard operation
jstoolnpp copied to clipboard

JSLint issue

Open sunjw opened this issue 8 years ago • 1 comments

This is how JSFormat would output this code -

(function () {
    "use strict";
    var func = window.callback(true, function () {
            return 0;
        });
    var expr = window.aa < window.bb ? func : false;
    if (expr) {
        return true;
    }
}
    ());

This is what JSLint considers the 'correct' format -

(function () {
    "use strict";
    var func = window.callback(true, function () {
        return 0;
    });
    var expr = window.aa < window.bb
        ? func
        : false;
    if (expr) {
        return true;
    }
}());

sunjw avatar Jun 22 '16 11:06 sunjw

@sunjw Could you provide an update on your progress with this enhancement, please?

NudeSpoons avatar Feb 24 '19 00:02 NudeSpoons