npm eslint-plugin-unicorn 23.0.0

latest releases: 52.0.0, 51.0.1, 51.0.0...
3 years ago

New rules

Improvements

  • explicit-length-check: Use 'non-zero': 'greater-than' by default (#850) 7c5df5f
  • prevent-abbreviations: Add fn/func -> function, i/idx/j -> index replacements (#836) e502f42
  • consistent-function-scoping: Check anonymous functions (#835) 29ecbf6
  • no-console-spaces: Make space position more specific (#838) e17a63f
  • no-nested-ternary: Improve report location & message (#844) ca1afa6
  • Track JSX presence per-function, fixing some false negatives (#830) 85d424c

Fixes

  • prefer-flat-map: Exclude .flat() where depth is not 1 (#859) 61d9851

v22.0.0...v23.0.0

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

NewReleases is sending notifications on new releases.