Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSLint issue #28

Open
sunjw opened this issue Jun 22, 2016 · 1 comment
Open

JSLint issue #28

sunjw opened this issue Jun 22, 2016 · 1 comment
Assignees

Comments

@sunjw
Copy link
Owner

sunjw commented Jun 22, 2016

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 sunjw self-assigned this Jun 22, 2016
@NudeSpoons
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants