Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A large PR as it fixes the linting issues per your current desired config.
Re disabling:
complexityandmax-statementsrules, though I can undo that if you like.no-continue, as for longer code,continuehelps prevent overly nested blocks. (Let me know if you prefer to have this rule removed.)no-ternaryas I hope you'd reconsider not enforcing this (just restricting nested ternaries), though I can re-enable that and offer fixes if you are set on that.clk_xandclk_yto camel-casing without introducing a breaking change, so I explicitly ignored them in the camel-case rule, but let me know if I can change..eslintignorefile (allows linting IDEs to know what should not be linted)overridesfor special treatment of config filesno-undefinedrule (not useful in strict mode and withno-restricted-namesprotecting against shadowing; while useful to useundefinedfor explicit array return)no-invalid-this(not practical for jQuery)no-ternary(really want to disable?)clk_xandclk_ynon-camel-cased<option>; add DOCTYPE; consistent/fixed quotesErrorobject in place of "abort" stringArray.isArray, movelet/constcloser to scopelintandtestscripteslintdevDep.enginesto Node 8 (forObject.values); bump jquery dep. to earliest npm version 1.9.1 (thoughpackage.jsonstarted in 1.8.0)If you need a build step so as to convert
consttovarandfor..offor older browsers, I can look to add Babel to the build steps, though in so doing, and if it's all right, I'd like to:package.jsonscripts onlyObject.values, so for older browsers, that may need a polyfill, depending on what you wanted to do about such, e.g., to refer users tocore-jsif they need these.)Other items I might tackle if you're ok with it:
eslint-config-ash-nazgfor a very robust config (drawing together several plugins in the community).husky, possibly withlint-stagedto avoid the need for handling installation of shell scripts in the repo (keeping it all nicely Node orpackage.jsoncommand driven).I'm on a very slow connection atm, so not able to download PhantomJS to confirm tests are still passing, but I think if you find any issues, there really shouldn't be many (or I can explain).