Skip to content

Commit

Permalink
Fix keep-options-order case with greedy, fixes #107
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Jun 21, 2022
1 parent 20a30a7 commit 814aa4b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rules/keep-options-order/config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const correctOrder = ["clock", "source", "filter", "fn", "target"];
const correctOrder = ["clock", "source", "filter", "fn", "target", "greedy"];

module.exports = { correctOrder };
2 changes: 2 additions & 0 deletions rules/keep-options-order/examples/correct-sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ sample({ source, filter, target });

sample({ filter, fn, target });
sample({ filter, fn });

sample({ filter, fn, greedy });
2 changes: 1 addition & 1 deletion rules/keep-options-order/examples/incorrect-sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ const filter = createStore();
const fn = () => null;
const target = createEvent();

sample({ source, clock, filter, fn, target });
sample({ source, clock, filter, fn, greedy: true, target });

0 comments on commit 814aa4b

Please sign in to comment.