From 8457df34fd9c031786e338a85c833d04f6255a5a Mon Sep 17 00:00:00 2001 From: "kai.zhu" Date: Thu, 22 Aug 2019 12:15:59 -0500 Subject: [PATCH] - jslint - remove allow-method-chain-newline hack - jslint - remove autofix - autofix-js-braket - remove leading-whitespace from bra - jslint - internalize hacks to function warn_at_extra - jslint - unhack const, let from var --- README.md | 48 ++-- lib.jslint.js | 714 ++++++++++++++++++++++++-------------------------- 2 files changed, 361 insertions(+), 401 deletions(-) diff --git a/README.md b/README.md index 476c0a07e..8c135934a 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,10 @@ this zero-dependency package will provide browser-compatible versions of jslint #### changelog 2019.8.12 - npm publish 2019.8.12 +- jslint - remove allow-method-chain-newline hack +- jslint - remove autofix - autofix-js-braket - remove leading-whitespace from bra +- jslint - internalize hacks to function warn_at_extra +- jslint - unhack const, let from var - jslint - upgrade to jslint edition 2019.8.3 - jslint - add async/await support - jslint - remove autofix-js-whitespace - ...}()); to ...}());\n\n\n\n @@ -321,11 +325,9 @@ if (!local.isBrowser) { elem.scrollTop = elem.scrollHeight; }; }); -Object.assign(local, globalThis.domOnEventDelegateDict); +local.objectAssignDefault(local, globalThis.domOnEventDelegateDict); globalThis.domOnEventDelegateDict = local; -local.onEventDomDb = ( - local.db && local.db.onEventDomDb -); +local.onEventDomDb = local.db && local.db.onEventDomDb; local.testRunBrowser = function (evt) { /* * this function will run browser-tests @@ -535,24 +537,17 @@ pre {\n\ white-space: pre-wrap;\n\ }\n\ .button {\n\ - background-color: #fff;\n\ - border: 1px solid;\n\ - border-bottom-color: rgb(186, 186, 186);\n\ - border-left-color: rgb(209, 209, 209);\n\ - border-radius: 4px;\n\ - border-right-color: rgb(209, 209, 209);\n\ - border-top-color: rgb(216, 216, 216);\n\ - color: #00d;\n\ + background: #ddd;\n\ + border: 1px solid #999;\n\ + color: #000;\n\ cursor: pointer;\n\ display: inline-block;\n\ - font-family: Arial, Helvetica, sans-serif;\n\ - font-size: 12px;\n\ - font-style: normal;\n\ - font-weight: normal;\n\ - margin: 0;\n\ - padding: 2px 7px 3px 7px;\n\ + padding: 2px 5px;\n\ text-align: center;\n\ - text-decoration: underline;\n\ + text-decoration: none;\n\ +}\n\ +.button:hover {\n\ + background: #bbb;\n\ }\n\ .colorError {\n\ color: #d00;\n\ @@ -677,9 +672,9 @@ pre {\n\ );\n\ };\n\ window.domOnEventDelegateDict.domOnEventResetOutput = function () {\n\ - Array.from(document.querySelectorAll(\n\ + document.querySelectorAll(\n\ ".onevent-reset-output"\n\ - )).forEach(function (elem) {\n\ + ).forEach(function (elem) {\n\ switch (elem.tagName) {\n\ case "INPUT":\n\ case "TEXTAREA":\n\ @@ -816,7 +811,7 @@ utility2-comment -->\n\

{{env.npm_package_description}}

\n\ \n\ \n\ @@ -825,7 +820,7 @@ utility2-comment -->\n\ \n\ -