npm eslint-plugin-unicorn 32.0.0

latest releases: 56.0.0, 55.0.0, 54.0.0...
3 years ago

Breaking

New rules

Improvements

  • no-for-loop: Ignore known non-array loop variables (#1242) 29f6b45
  • prefer-array-find: Singularize variable name in autofix (#1243) 6b340a3
  • prefer-switch: Do not add braces to the default case (#1235) c241782
  • no-zero-fractions: Handle numeric separators, fix missing parentheses, improve report location (#1238) 2724afa
  • no-array-for-each: Better error message (#1239) 2e82dc8
  • prefer-switch: Avoid conflict with no-unreachable rule (#1234) 1c78d0c
  • prefer-optional-catch-binding: Support checking destructured errors (#1229) a0b2f4f
  • no-array-for-each: Support autofixing complicated parameters (#1228) d84143f
  • prefer-negative-index: Support Array#at() (#1217) 6443ee3
  • explicit-length-check: Check Set#size (#1226) 6a745a0
  • filename-case: Improve report position (#1227) 3d4ac1b

Fixes

  • prevent-abbreviations: Fix shorthand import/export detection (#1215) a669e31

v31.0.0...v32.0.0

Don't miss a new eslint-plugin-unicorn release

NewReleases is sending notifications on new releases.