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 - hide warning about unordered case-statements behind beta-flag #419

Merged
merged 5 commits into from
Jan 9, 2023

Conversation

kaizhu256
Copy link
Member

this pr relaxes warning about unordered cases in switch-statements (can be re-enabled with /*jslint beta*/):

/*jslint beta*/
function baz(aa) {
    switch (aa) {
    case 2:
        return 2;
    case 1:
        return 1;
    default:
        return 0;
    }
}

/*
 1. Expected case-number '1' to be ordered before case-number '2'. // line 6, column 10
    case 1:
*/

additionally:

  • ci - bugfix - update shell-function shCiBase() to handle undefined fileMain
  • ci - auto-update version-number in main mjs-module
  • ci - update shell-function shDirHttplinkValidate() to ignore insecure-links http://127.0.0.1, http://localhost

@kaizhu256 kaizhu256 merged commit 6b77843 into jslint-org:beta Jan 9, 2023
@kaizhu256 kaizhu256 deleted the beta_unordered_case branch January 9, 2023 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant