v16.0.0
Major Changes
-
#206
4e2b9fbThanks @spaceninja! - Update dependencyeslint-config-prettierto v7- Changed: At least ESLint 7.0.0 is now required.
-
#176
404c42dThanks @renovate! - Updateeslint-plugin-unicornto23.0.0- New rule:
unicorn/prefer-math-trunc(enabled by default) - New rule:
unicorn/prefer-ternary(enabled by default) - New rule:
numeric-separators-style(not enabled by default yet)
- New rule:
-
#187
a1f68c2Thanks @spaceninja! - Upgraded to v15 of eslint-config-standard, which adds several rules:- Require indentation for values of ternary expressions (indent)
- Enforce newlines between operands of ternary expressions if the expression spans multiple lines (multiline-ternary)
- Disallow loops with a body that allows only one iteration (no-unreachable-loop)
- Disallow useless backreferences in regular expressions (no-useless-backreference)
- Enforce default clauses in switch statements to be last (default-case-last)
- Disallow Number Literals That Lose Precision (no-loss-of-precision)
-
#242
58c7204Thanks @renovate! - Updateeslint-plugin-unicorntov29New rules:
@cloudfour/unicorn/no-array-for-each@cloudfour/unicorn/no-array-push-push@cloudfour/unicorn/no-this-assignment@cloudfour/unicorn/no-lonely-if@cloudfour/unicorn/empty-brace-spaces(not enabled by default)@cloudfour/unicorn/prefer-date-now@cloudfour/unicorn/no-new-array@cloudfour/unicorn/prefer-array-index-of@cloudfour/unicorn/prefer-regexp-test@cloudfour/unicorn/consistent-destructuring(not enabled by default)@cloudfour/unicorn/prefer-array-some@cloudfour/unicorn/prefer-default-parameters@cloudfour/unicorn/no-static-only-class@cloudfour/unicorn/prefer-array-flat(not enabled by default)
Disabled rules:
@cloudfour/unicorn/import-index(due to Node ESM resolution implementation)
Rename rules:
@cloudfour/unicorn/no-fn-reference-in-iterator→@cloudfour/unicorn/no-array-callback-reference@cloudfour/unicorn/no-array-instanceof→@cloudfour/unicorn/no-instanceof-array@cloudfour/unicorn/no-reduce→@cloudfour/unicorn/no-array-reduce@cloudfour/unicorn/prefer-dataset→@cloudfour/unicorn/prefer-dom-node-dataset@cloudfour/unicorn/prefer-flat-map→@cloudfour/unicorn/prefer-array-flat-map@cloudfour/unicorn/prefer-replace-all→@cloudfour/unicorn/prefer-string-replace-all@cloudfour/unicorn/prefer-starts-ends-with→@cloudfour/unicorn/prefer-string-starts-ends-with@cloudfour/unicorn/prefer-text-content→@cloudfour/unicorn/prefer-dom-node-text-content@cloudfour/unicorn/prefer-trim-start-end→@cloudfour/unicorn/prefer-string-trim-start-end@cloudfour/unicorn/prefer-event-key→@cloudfour/unicorn/prefer-keyboard-event-key@cloudfour/unicorn/prefer-node-append→@cloudfour/unicorn/prefer-dom-node-append@cloudfour/unicorn/prefer-node-remove→@cloudfour/unicorn/prefer-dom-node-remove
There were many improvements/changes to individual rules, listed here
-
#191
7f732b6Thanks @renovate! - Updateeslint-config-standardto16.0.1- Remove
eslint-plugin-standardsince all of the rules from it now live in other plugins camelcaserule now allows variables starting withUNSAFE_(from react) and known globalsno-unused-varsnow ignores unused caught errors (unicorn/prefer-optional-catch-bindinghandles this use case)prefer-regex-literals: EnableddisallowRedundantWrappingoptionarray-callback-return: ChangeallowImplicittofalse.use-isnan: ChangeenforceForIndexOftotrue.
- Remove