Releases: ramda/eslint-plugin-ramda
v3.0.0-beta.1
Breaking Changes
- Remove support for nodejs 7 and 9
Chore
- Update dependencies
v3.0.0-beta.0
Breaking Changes
- Removed support for nodejs 4 and 5
v2.5.1
v2.5.0
v2.4.0
v2.3.0
eslint-plugin-ramda v2.3.0 has been released!
Bugfixes
map-simplification, where map(prop(__, obj)) was being caught
New rules
compose-pipe-styleeq-by-simplification
v2.2.0
Changelog
Add prefer-ramda-boolean rule
- Valid
R.T
R.F- Invalid
function () { return true; }
() => { return true; }
() => falseAdd 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
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
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-rejecthas been replaced by the rulefilter-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.