Skip to content

Releases: ramda/eslint-plugin-ramda

v3.0.0-beta.1

21 Jan 11:17
Compare
Choose a tag to compare
v3.0.0-beta.1 Pre-release
Pre-release

Breaking Changes

  • Remove support for nodejs 7 and 9

Chore

  • Update dependencies

v3.0.0-beta.0

21 Jan 11:06
Compare
Choose a tag to compare
v3.0.0-beta.0 Pre-release
Pre-release

Breaking Changes

  • Removed support for nodejs 4 and 5

v2.5.1

24 Mar 13:06
Compare
Choose a tag to compare

Bugfixes

  • Simplify and fix error reporting for prefer-complement - #18

v2.5.0

04 Mar 13:25
Compare
Choose a tag to compare

New rules

  • prefer-both-either - Enforces using both/either instead of allPass/anyPass with a list of only two predicates

v2.4.0

10 Jan 09:42
Compare
Choose a tag to compare

New rules

  • prefer-complement - Enforces using complement instead of compositions using not

v2.3.0

04 Dec 18:04
1a63925
Compare
Choose a tag to compare

eslint-plugin-ramda v2.3.0 has been released!

Bugfixes

map-simplification, where map(prop(__, obj)) was being caught

New rules

  • compose-pipe-style
  • eq-by-simplification

v2.2.0

18 Nov 19:04
2f1f8f8
Compare
Choose a tag to compare

Changelog

Add prefer-ramda-boolean rule

  • Valid
R.T
R.F
  • Invalid
function () { return true; }
() => { return true; }
() => false

Add always-simplification rule

  • Valid
R.T
R.F
  • Invalid
always(true)
always(false)

Add pipe-simplification and compose-simplification

Suggesting composition of map and flatten to be chain.

Detects map(pickAll(_))

And suggests using project.

v2.1.0

16 Nov 20:00
673071b
Compare
Choose a tag to compare

In version 2.1.0, membered R functions are also supported. The algorithm will be further improved to be more specific and be based on the scope (@lo1tuma is working on this).

Now, things like R.map(R.prop) or R['filter'](complement) can also be captured.

Breaking Changes

  • No breaking changes

New Rules

  • No new rules

v2.0.0

14 Nov 16:25
Compare
Choose a tag to compare

With version 2.0.0 we merged the two separate eslint-plugin-ramda projects from @haskellcamargo and @lo1tuma and moved the merged project to the ramda organization.

The project from @haskellcamargo already implemented all features that exist in eslint-plugin-ramda v1, which was only one rule (prefer-reject) but on top of that it also had some more features. That’s why we decided to use the project from @haskellcamargo as a new basis for eslint-plugin-ramda v2.

Breaking Changes

  • The rule prefer-reject has been replaced by the rule filter-simplification

New Rules

  • any-pass-simplification - Suggests simplifying list of negations in anyPass by single negation in allPass
  • both-simplification - Suggests transforming negated both conditions on negated either
  • complement-simplification - Forbids confusing complement, suggesting a better one
  • cond-simplification - Forbids using cond when ifElse, either or both fits
  • either-simplification - Suggests transforming negated either conditions on negated both
  • if-else-simplification - Suggests when and unless when it is possible to replace
  • map-simplification - Forbids map(prop(_)) and suggests pluck
  • merge-simplification - Forbids merge when assoc fits
  • no-redundant-and - Forbids and with 2 parameters in favor of &&
  • no-redundant-not - Forbids not with 1 parameter in favor of !
  • no-redundant-or - Forbids or with 2 parameters in favor of ||
  • prop-satisfies-simplification - Detects when can replace propSatisfies by more simple functions
  • reduce-simplification - Detects when can replace reduce by sum or product
  • reject-simplification - Forbids using negated reject and suggests filter
  • set-simplification - Forbids using set with lensProp in favor of assoc
  • unless-simplification - Forbids using negated unless and suggests when
  • when-simplification - Forbids using negated when and suggests unless

Thanks to @haskellcamargo for reviving this project.